[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 : -- versions: -3rd party, Python 2.4, Python 2.5, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list

[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 : Added file: http://bugs.python.org/file14644/test_email.diff ___ Python tracker ___ ___ Python-bugs-list mailing

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

2009-08-03 Thread Gabriel Genellina
Gabriel Genellina 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: http://bugs.python.org/file14643/utils.diff

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

2009-08-03 Thread Matthew Barnett
Matthew Barnett 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

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

2009-08-03 Thread Myk Melez
New submission from Myk Melez : RFC 2368 specifies mailto: URLs as having the following syntax: mailtoURL = "mailto:"; [ to ] [ headers ] to = #mailbox headers= "?" header *( "&" header ) header = hname "=" hvalue

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

2009-08-03 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- components: +Tkinter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2009-08-03 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : 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) else: f(length/

[issue6638] optparse parse_args argument references wrong

2009-08-03 Thread Kevin Quick
New submission from Kevin Quick : 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 sentence of the

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

2009-08-03 Thread Antoine Pitrou
Antoine Pitrou 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 __

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

2009-08-03 Thread John Machin
John Machin 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 pattern or text doesn't release memo

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

2009-08-03 Thread Ian Beaver
Ian Beaver 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 From http://spyced.

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

2009-08-03 Thread Ian Beaver
Ian Beaver 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 a thread on accept and you

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

2009-08-03 Thread Tom Clarke
Changes by Tom Clarke : Added file: http://bugs.python.org/file14641/bug.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2009-08-03 Thread Tom Clarke
New submission from Tom Clarke : 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 appears under: Pyth

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

2009-08-03 Thread Charles Mason
New submission from Charles Mason : 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 non-existing path ele

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

2009-08-03 Thread Francesco Del Degan
New submission from Francesco Del Degan : $ 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", line 122, in _

[issue6596] urllib2 bug on CentOS

2009-08-03 Thread Roumen Petrov
Roumen Petrov added the comment: 10x for closing. It seems to me python is not mature as http client. -- nosy: +rpetrov ___ Python tracker ___ ___

[issue6630] string.Template custom pattern not working

2009-08-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I agree w/Raymond. string + flags -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[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 : 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: http://docs.python.org/library/sys.ht

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > New submission from Ezio Melotti : > > 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() a

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

2009-08-03 Thread Guilherme Polo
Changes by Guilherme Polo : -- nosy: +gpolo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2009-08-03 Thread Guilherme Polo
Guilherme Polo 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 Windows to tell "tr

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

2009-08-03 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74297, backported to 3.1 in r74298. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue834351] Mouse wheel crashes program

2009-08-03 Thread Guilherme Polo
Guilherme Polo 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 had similar prob

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Mark Dickinson
Mark Dickinson 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 as those characters

[issue6633] No handlers could be found for logger

2009-08-03 Thread James
New submission from James : 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. http://svn.python.org/view/python/trunk/Lib/logging/__init__.py?r1=66211&r2=67511 do you think

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6630] string.Template custom pattern not working

2009-08-03 Thread Eric Smith
Eric Smith 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 ___

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

2009-08-03 Thread Francesco Del Degan
Francesco Del Degan added the comment: urllib2 does escape spaces (and other characters too): In [20]: u=urllib2.urlopen("http://sourceforge.net/project/showfiles.php? group_id=16847&package_id=13374") In [21]: u.url Out[21]: 'http://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc- c%20Super%2

[issue6596] urllib2 bug on CentOS

2009-08-03 Thread Senthil
Senthil added the comment: Thanks for the update. I am closing this as Invalid. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue6596] urllib2 bug on CentOS

2009-08-03 Thread Francesco Del Degan
Francesco Del Degan 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 '. i thinks that you should try to look for some bugs into

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +lemburg, loewis, marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6596] urllib2 bug on CentOS

2009-08-03 Thread Francesco Del Degan
Francesco Del Degan 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 Dlo

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-03 Thread Ezio Melotti
New submission from Ezio Melotti : 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 digits (e.g. int(u'123

[issue6630] string.Template custom pattern not working

2009-08-03 Thread Raymond Hettinger
Raymond Hettinger 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 2.7, Python 3.2 -Python 2.6, Pyth

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

2009-08-03 Thread Karoly Lorentey
New submission from Karoly Lorentey : 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, such that the next

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

2009-08-03 Thread Gabriel Genellina
Gabriel Genellina 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 Windows-compatible, it should

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

2009-08-03 Thread Gabriel Genellina
Gabriel Genellina added the comment: I'll try to rephrase the section. -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-li

[issue1721083] Add File - Reload

2009-08-03 Thread Guilherme Polo
Guilherme Polo 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 in the file menu

[issue1175686] add "reload" function to IDLE

2009-08-03 Thread Guilherme Polo
Guilherme Polo added the comment: Closing this in favour of issue1721083. -- resolution: -> duplicate status: open -> closed superseder: -> Add File - Reload ___ Python tracker

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

2009-08-03 Thread Guilherme Polo
Guilherme Polo 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 __

[issue4691] IDLE Code Caching Windows

2009-08-03 Thread Brandon Dixon
Brandon Dixon 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 wrote: > > Guilherme Polo added the comment: > > Amaury, from what I remember your suggestion h

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

2009-08-03 Thread albert Mietus
New submission from albert Mietus : 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 the later needs a

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

2009-08-03 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2009-08-03 Thread Ezio Melotti
Ezio Melotti added the comment: See also #481171. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6630] string.Template custom pattern not working

2009-08-03 Thread Javier
New submission from Javier : 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 is [_a-z][_a-z0-9]*). How

[issue4691] IDLE Code Caching Windows

2009-08-03 Thread Guilherme Polo
Guilherme Polo 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 ___

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

2009-08-03 Thread Nir Soffer
Nir Soffer 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 there is oob data

[issue4652] IDLE does not work with Unicode

2009-08-03 Thread Guilherme Polo
Guilherme Polo 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() print(text.tk.cal