[issue4652] IDLE does not work with Unicode

2009-08-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I can't seem to reproduce that, maybe it could be a tk issue ? Can you try writing anything (that doesn't work on IDLE) on a tkinter.Text widget to see if it shows there ? You could use this code below: from tkinter import Text text = Text()

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-08-03 Thread Nir Soffer
Nir Soffer nir...@gmail.com added the comment: handle_expt is documented to be called when there is OOB data. However, handle_expt_event is not documented, and according the framework design as I see it, it simply means socket has exceptional condition when select returns. On unix, this means

[issue4691] IDLE Code Caching Windows

2009-08-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Amaury, from what I remember your suggestion has been applied some time ago. Can you check if the newest Windows installer still adds an '-n' by default ? -- ___ Python tracker rep...@bugs.python.org

[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-08-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See also #481171. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6609 ___

[issue6630] string.Template custom pattern not working

2009-08-03 Thread Javier
New submission from Javier javier.coll...@gmail.com: In the string.Template documentation (http://docs.python.org/library/string.html) it's explained that if a custom regular expression for pattern substitution is needed, it's possible to override idpattern class attribute (whose default value

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2009-08-03 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6589 ___ ___

[issue6631] urlparse.urlunsplit() can't handle relative files (for urllib*.open()

2009-08-03 Thread albert Mietus
New submission from albert Mietus alb...@mietus.nl: The functions urlparse.url{,un}split() and urllib{,2}.open() do not work together for relative, local files, due a bug in urlunsplit. Given a file f='./rel/path/to/file.html' it can be open directly by urllib.open(f), but not in urllib2! as

[issue4691] IDLE Code Caching Windows

2009-08-03 Thread Brandon Dixon
Brandon Dixon brandon.s.di...@gmail.com added the comment: Can you guys let me know when this is fixed or thought to be fixed. I would like to test from my end just to ensure. On Sun, Aug 2, 2009 at 11:27 PM, Guilherme Polo rep...@bugs.python.orgwrote: Guilherme Polo ggp...@gmail.com added

[issue3926] Idle doesn't obey the new improved warnings arguements

2009-08-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: This looks good Scott, I'm just attaching the .diff here with real minor changes and will be applying if no one is against it. -- keywords: +patch Added file: http://bugs.python.org/file14638/idle_fixwarnings.diff

[issue1175686] add reload function to IDLE

2009-08-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Closing this in favour of issue1721083. -- resolution: - duplicate status: open - closed superseder: - Add File - Reload ___ Python tracker rep...@bugs.python.org

[issue1721083] Add File - Reload

2009-08-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I have done a very initial patch in an attempt to define where we should go with this feature. There are several different proposals around this issue and the superseded one, I opted to implement the simplest one which is to add a 'Revert' entry

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2009-08-03 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I'll try to rephrase the section. -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6570 ___

[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-08-03 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: You're right, aux is a reserved name on Windows (like prn, con, and a few others). There is a way to force the OS to actually create such files, but not every tool can handle them correctly. If the zip file is intended to be

[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-03 Thread Karoly Lorentey
New submission from Karoly Lorentey kar...@lorentey.hu: The new io.BufferedRandom implementation in Python 3.1 has a broken seek that seems not to properly handle the case when the target of the seek lies inside the contents of the file buffer. It leaves the file object in a confused state,

[issue6630] string.Template custom pattern not working

2009-08-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Better to add a flags argument and leave the default flag as-is. -- assignee: - barry components: +Library (Lib) -IO, Regular Expressions nosy: +barry, rhettinger type: behavior - feature request versions: +Python

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: The decimal codec only handles characters in the Nd (Number, decimal) Unicode category and whitespaces [a]. It is used by int(), float(), complex() and indirectly by Decimal(), Fraction() and possibly others. This works well only for plain

[issue6596] urllib2 bug on CentOS

2009-08-03 Thread Francesco Del Degan
Francesco Del Degan f.delde...@ngi.it added the comment: I don't think that this is a python issue, because of this: [r...@localhost ~]# curl -O http://wm.exchanger.ru/asp/XMLWMList.asp?exchtype=1 % Total% Received % Xferd Average Speed TimeTime Time Current

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +lemburg, loewis, marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6632 ___

[issue6596] urllib2 bug on CentOS

2009-08-03 Thread Francesco Del Degan
Francesco Del Degan f.delde...@ngi.it added the comment: Update: Now into the same system (CentOS) without any mod: import urllib2 url = 'http://wm.exchanger.ru/asp/XMLWMList.asp?exchtype=1' t = urllib2.urlopen(url).read() t '?xml version=1.0?. i thinks that you should try to look

[issue6596] urllib2 bug on CentOS

2009-08-03 Thread Senthil
Senthil orsent...@gmail.com added the comment: Thanks for the update. I am closing this as Invalid. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6596

[issue6557] urllib.urlopen creates bad requests when location header of 301 redirects contain spaces

2009-08-03 Thread Francesco Del Degan
Francesco Del Degan f.delde...@ngi.it added the comment: urllib2 does escape spaces (and other characters too): In [20]: u=urllib2.urlopen(http://sourceforge.net/project/showfiles.php? group_id=16847package_id=13374) In [21]: u.url Out[21]:

[issue6630] string.Template custom pattern not working

2009-08-03 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I agree with Raymond. I think it should either take a string and flags, or a compiled regex object. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6630

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6632 ___ ___ Python-bugs-list mailing

[issue6633] No handlers could be found for logger

2009-08-03 Thread James
New submission from James purplei...@gmail.com: I was trying to suppress the error message as shown in the title, when I found out (by searching through the source) that there is a NullHandler for precisely this purpose.

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The bit that most convinces me that *some* change is desirable is that (with py3k notation), int('7', 16) is legal but int('F', 16) is not. In an ideal world one might hope that the set of characters accepted by int(s, 16) would be the same

[issue834351] Mouse wheel crashes program

2009-08-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: This is a tk issue, so the best way to fix this (if you don't want to install something newer than Python 2.4 on Windows) is to install a newer tcl/tk version. Unfortunately the proposed workaround is way too specific, imagine if other bindings

[issue6618] Typo in a listing in 5.2.9 of language reference

2009-08-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74297, backported to 3.1 in r74298. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6618

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2009-08-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Hi Don, I don't think this is an issue about idle competing for tkinter resources (or idle and tkinter competing for resources -- the other meaning I got when reading your message). From what I remember this WSAEWOULDBLOCK is just a way for

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2009-08-03 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: -- nosy: +gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5712 ___ ___ Python-bugs-list mailing

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: New submission from Ezio Melotti ezio.melo...@gmail.com: The decimal codec only handles characters in the Nd (Number, decimal) Unicode category and whitespaces [a]. It is used by int(), float(), complex() and

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2009-08-03 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke jgehr...@gmail.com: Hey there, hopefully I fill out this form in an adequate way! I ran into some problems while using sys.exit('msg') together with threads, which could have been avoided with slightly more information in the docs here:

[issue6630] string.Template custom pattern not working

2009-08-03 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I agree w/Raymond. string + flags -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6630 ___

[issue6596] urllib2 bug on CentOS

2009-08-03 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: 10x for closing. It seems to me python is not mature as http client. -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6596

[issue6635] Profiler doesn't print usage (indexError instead)

2009-08-03 Thread Francesco Del Degan
New submission from Francesco Del Degan f.delde...@ngi.it: $ python -m profile Usage: profile.py [-o output_file_path] [-s sort] scriptfile [arg] ... $ python -m profile -s calls Traceback (most recent call last): File /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py,

[issue6636] Non-existant directory in sys.path prevents further imports

2009-08-03 Thread Charles Mason
New submission from Charles Mason cemaso...@gmail.com: Steps to reproduce: 1) Add to sys.path a path that does not exist 2) Import a module, any module. This invokes get_path_importer over every element of sys.path. The NullImporter __init__ method is called and an instance created for each

[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-03 Thread Tom Clarke
New submission from Tom Clarke t.cla...@ic.ac.uk: The enclosed script when run under 2.6.2 IDLE standard distribution on x86 shows that shallow copy (.copy()) of a non-empty defaultdict object returns an empty defaultdict! Other ways to copy, e.g. defaultdict(none, d.items()), work fine. Bug

[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-03 Thread Tom Clarke
Changes by Tom Clarke t.cla...@ic.ac.uk: Added file: http://bugs.python.org/file14641/bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6637 ___ ___

[issue1230540] sys.excepthook doesn't work in threads

2009-08-03 Thread Ian Beaver
Ian Beaver undercoverid...@gmail.com added the comment: I found that the workaround suggested doesn't work when you have a subclass of threading.Thread and you want to catch everything in the module that contains the class to a common log. Say you have a module with a socket server that spawns

[issue1230540] sys.excepthook doesn't work in threads

2009-08-03 Thread Ian Beaver
Ian Beaver undercoverid...@gmail.com added the comment: Instead of using decorators, this is a slightly simpler modification to the proposed workaround that allows for any subclassed run method to also be caught. def installThreadExcepthook(): Workaround for sys.excepthook thread bug

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-03 Thread John Machin
John Machin sjmac...@users.sourceforge.net added the comment: Problem is memory leak from repeated calls of e.g. compiled_pattern.search(some_text). Task Manager performance panel shows increasing memory usage with regex but not with re. It appears to be cumulative i.e. changing to another

[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'll look into this as soon as possible. -- assignee: - pitrou nosy: +pitrou priority: - critical stage: - needs patch versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue6638] optparse parse_args argument references wrong

2009-08-03 Thread Kevin Quick
New submission from Kevin Quick kq1qu...@gmail.com: In optparse description of 16.4.3.7. Parsing arguments (http:// docs.python.org/library/optparse.html#parsing-arguments) the keyword argument to parse_args is values=None but in the description of the options return value and in the second

[issue6639] turtle: _tkinter.TclError: invalid command name .10170160

2009-08-03 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: I tried the following turtle program; it was taking some time to draw .. so I pressed C-c after which I saw the exception traceback. cat play.py from turtle import * def f(length, depth): if depth == 0: forward(length)

[issue6639] turtle: _tkinter.TclError: invalid command name .10170160

2009-08-03 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- components: +Tkinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6639 ___ ___

[issue6640] urlparse should parse mailto: URL headers as query parameters

2009-08-03 Thread Myk Melez
New submission from Myk Melez m...@mozilla.org: RFC 2368 http://www.ietf.org/rfc/rfc2368.txt specifies mailto: URLs as having the following syntax: mailtoURL = mailto:; [ to ] [ headers ] to = #mailbox headers= ? header *( header ) header = hname =

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-03 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20090804.zip is a new version of the regex module. The memory leak has been fixed. -- Added file: http://bugs.python.org/file14642/issue2636-20090804.zip ___ Python tracker

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-03 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: This patch replaces the random part with an increasing sequence (in a thread safe way). Also, added a test case for make_msgid (there was none previously) -- keywords: +patch nosy: +gagenellina Added file:

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-03 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: Added file: http://bugs.python.org/file14644/test_email.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598 ___

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-03 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- versions: -3rd party, Python 2.4, Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598 ___