[issue3042] Add PEP 8 compliant aliases to threading module

2008-06-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: I'd still be inclined to put a @wraps(meth) decorator on the definition of the wrapper function (and then override to the supplied name afterwards) - remember that functools.wraps is a decorator factory rather than a decorator itself. That

[issue2138] Add a factorial function

2008-06-09 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Added math.factorial() in r64050. -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2138 ___

[issue3066] FD leak in urllib2

2008-06-09 Thread Bohdan Vlasyuk
New submission from Bohdan Vlasyuk [EMAIL PROTECTED]: In urllib2.AbstractHTTPHandler.do_open, the following like creates a circular link: r.recv = r.read [r.read is a bound method, so it contains a reference to 'r'. Therefore, r now refers to itself.] If the GC is disabled or doesn't

[issue3067] setlocale Tracebacks on unicode locale strings

2008-06-09 Thread vincent.chute
New submission from vincent.chute [EMAIL PROTECTED]: import locale locale.setlocale( locale.LC_ALL, u'ja_JP.utf8') Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.5/locale.py, line 475, in setlocale locale = normalize(_build_localename(locale))

[issue3067] setlocale Tracebacks on unicode locale strings

2008-06-09 Thread vincent.chute
vincent.chute [EMAIL PROTECTED] added the comment: I have confirmed this exists on trunk http://svn.python.org/view/python/trunk/Lib/locale.py?rev=63824view=markup (63824 is the latest) where the line in question is now 475 ___ Python tracker [EMAIL

[issue3051] heapq change breaking compatibility

2008-06-09 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- status: closed - open ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3051 ___ ___ Python-bugs-list

[issue2517] Error when printing an exception containing a Unicode string

2008-06-09 Thread Simon Cross
Simon Cross [EMAIL PROTECTED] added the comment: One of the examples Christoph tried was unicode(Exception(u'\xe1')) which fails quite oddly with: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 0: ordinal not in range(128) The reason for this is Exception

[issue775544] Tk.quit leads to crash in python.exe

2008-06-09 Thread Jim Jewett
Jim Jewett [EMAIL PROTECTED] added the comment: Were you using IDLE at the time? When I try this (Windows XP SP2), the button and its window do not go away (which is arguably a bug), but it does not crash. If I then try to close the window using the little X (from the window manager),

[issue2517] Error when printing an exception containing a Unicode string

2008-06-09 Thread David Fraser
Changes by David Fraser [EMAIL PROTECTED]: -- nosy: +davidfraser ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2517 ___ ___ Python-bugs-list mailing

[issue2517] Error when printing an exception containing a Unicode string

2008-06-09 Thread David Fraser
David Fraser [EMAIL PROTECTED] added the comment: Aha - the __unicode__ method was previously there in Python 2.5, and was ripped out because of the unicode(Exception) problem. See http://bugs.python.org/issue1551432. The reversion is in

[issue1551432] __unicode__ breaks for exception class objects

2008-06-09 Thread David Fraser
David Fraser [EMAIL PROTECTED] added the comment: Note that this causes problems with converting Exceptions to unicode - see http://bugs.python.org/issue2517 -- nosy: +davidfraser ___ Python tracker [EMAIL PROTECTED]

[issue2517] Error when printing an exception containing a Unicode string

2008-06-09 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Mon, Jun 9, 2008 at 8:40 AM, Simon Cross [EMAIL PROTECTED] wrote: Simon Cross [EMAIL PROTECTED] added the comment: One of the examples Christoph tried was unicode(Exception(u'\xe1')) which fails quite oddly with:

[issue2517] Error when printing an exception containing a Unicode string

2008-06-09 Thread Simon Cross
Simon Cross [EMAIL PROTECTED] added the comment: Concerning http://bugs.python.org/issue1551432: I'd much rather have working unicode(e) than working unicode(Exception). Calling unicode(C) on any class C which overrides __unicode__ is broken without tp_unicode anyway.

[issue2517] Error when printing an exception containing a Unicode string

2008-06-09 Thread Simon Cross
Simon Cross [EMAIL PROTECTED] added the comment: Benjamin Peterson wrote: What version are you using? In Py3k, str is unicode so __str__ can return a unicode string. I'm sorry it wasn't clear. I'm aware that this issue doesn't apply to Python 3.0. I'm testing on both Python 2.5 and Python 2.6

[issue2517] Error when printing an exception containing a Unicode string

2008-06-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: Removing 3.0 from the versions list. -- nosy: +lemburg versions: -Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2517 ___

[issue3064] new turtle module for Python 3.0

2008-06-09 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Can you please provide the documentation change as a patch relative to the 2.6 Doc/lib/turtle.rst (or as a complete file based on turtle.rst)? In the current form, I find it hard to accept, since I would have to redo all the changes that I had

[issue3068] IDLE - Add an extension configuration dialog

2008-06-09 Thread Tal Einat
New submission from Tal Einat [EMAIL PROTECTED]: Attaching a patch for a straightforward extension config dialog, largely based on configDialog.py. This uses the multiple-tab-rows feature of the TabbedPageSet widget from the tabbedPages module, as well as the included VerticalScrolledFrame

[issue3068] IDLE - Add an extension configuration dialog

2008-06-09 Thread Tal Einat
Changes by Tal Einat [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10560/IDLE_configExtensionsDialog.080609.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3068 ___

[issue3068] IDLE - Add an extension configuration dialog

2008-06-09 Thread Tal Einat
Tal Einat [EMAIL PROTECTED] added the comment: I forgot to mention: This patch also removes the paragraph width option from the General tab in the normal IDLE config, since that configures a parameter of the FormatParagraph extension, which can now be done in the extension config dialog. Added

[issue2517] Error when printing an exception containing a Unicode string

2008-06-09 Thread David Fraser
David Fraser [EMAIL PROTECTED] added the comment: So I've got a follow-up patch that adds tp_unicode. Caveat that I've never done anything like this before and it's almost certain to be wrong. It does however generate the desired result in this case :-) Added file:

[issue2517] Error when printing an exception containing a Unicode string

2008-06-09 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Mon, Jun 9, 2008 at 2:04 PM, David Fraser [EMAIL PROTECTED] wrote: David Fraser [EMAIL PROTECTED] added the comment: So I've got a follow-up patch that adds tp_unicode. Caveat that I've never done anything like this before and it's

[issue3064] new turtle module for Python 3.0

2008-06-09 Thread Gregor Lingl
Gregor Lingl [EMAIL PROTECTED] added the comment: Here is the (slightly) modified docfile in rst-format for the new turtle module for Python 3.0 I'll submit the diff (from the turtle.rst for Python 2.6) in a follow up posting for your convenience. So you can easily check the few differences -

[issue3064] new turtle module for Python 3.0

2008-06-09 Thread Gregor Lingl
Gregor Lingl [EMAIL PROTECTED] added the comment: And here the diff from docfile turtle.rst to what I have named turtle30.rst for now. Gregor -- keywords: +patch Added file: http://bugs.python.org/file10564/turtle.rst.diff ___ Python tracker [EMAIL

[issue3069] Let set.union and set.intersection accept multiple arguments

2008-06-09 Thread Arnaud Delobelle
New submission from Arnaud Delobelle [EMAIL PROTECTED]: The patch allows the following syntax for s set/frozenset: * s.union(a, b, c,...) * s.update(a, b, c,...) * s.intersection(a, b, c,...) * s.intersection_update(a, b, c,...) By extension: * set.union(a, b, c,...) # provided a is a

[issue3069] Let set.union and set.intersection accept multiple arguments

2008-06-09 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Time machine -- I already put in a version of this last night. See r64051 and r64055. Will take a look at your code to see if I can incorporate the sorting for insection() and harvest it for more tests. -- assignee: -

[issue3069] Let set.union and set.intersection accept multiple arguments

2008-06-09 Thread Arnaud Delobelle
Arnaud Delobelle [EMAIL PROTECTED] added the comment: I must have diffed my patch against the wrong revision then, because I haven't seen it. I had finished it last thursday, but have had a very hectic few days and only found a few minutes to send it this evening. Something must have gone

[issue2917] merge pickle and cPickle in 3.0

2008-06-09 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10566/changeset-2.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2917 ___

[issue2917] merge pickle and cPickle in 3.0

2008-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Here is the full patch that adds the _pickle module. I would like to commit it as soon another developer tests it and (hopefully) reviews it. A documentation patch is coming as well. However since I don't want to block the release just

[issue3004] Bug in slice.indices()

2008-06-09 Thread Arnaud Bergeron
Arnaud Bergeron [EMAIL PROTECTED] added the comment: Don't blame me for the delay, I have long days (yes, really up to 96 hours long :) As for the documentation patch, I'm not certain anymore about it. Unless I bloat the description to about one full screen worth of text, there will always be

[issue2523] binary buffered reading is quadratic

2008-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Oh, that is simple to fix. You can round the value 2*avail to the nearest block by doing something like (2*avail) ~(bksize-1) where bksize is a power of 2, or the less magic (2*avail//bksize) * bksize.

[issue3050] Implement PEP 371: multiprocessing module

2008-06-09 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I'm attaching my version of the docs. (Jesse, I did fix the Sphinx warnings and some other problems I noticed.) Georg, if you could cast your expert reST eye over them, I'd be much obliged. -- assignee: - benjamin.peterson nosy:

[issue3071] The ValueError raised by failing to unpack sequence should have more information.

2008-06-09 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Would you like to submit a patch? -- nosy: +benjamin.peterson priority: - low ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3071 ___

[issue754016] urlparse goes wrong with IP:port without scheme

2008-06-09 Thread Senthil
Senthil [EMAIL PROTECTED] added the comment: Attaching the patch to fix this issue. I deliberated upon this for a while and came up with the approach to: 1) fix the port issue, wherein urlparse should technically recognize the ':' separator for port from ':' after scheme. 2) And Doc fix

[issue2582] Unpickling of range objects fail in Py3k

2008-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Fixed in r64059 for Python 3.0 Fixed in r64056 and r64057 for Python 2.6 -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2582

[issue2582] Unpickling of range objects fail in Py3k

2008-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Fixed in r64056 and r64057 for Python 2.6 Oops, I meant r64057 and r64058. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2582 ___

[issue1092962] Make Generators Pickle-able

2008-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: I think is a bad idea too. Unless I see patch that implements this feature cleanly, I will have to reject this feature request. -- nosy: +alexandre.vassalotti resolution: - rejected status: open - pending

[issue3072] Assignment to list of lists gives incorrect result

2008-06-09 Thread Steve Emmert
New submission from Steve Emmert [EMAIL PROTECTED]: This bug is explained in the attached file. The list of lists does not behave correctly when it is defined by the makeGrid function in the attached file. When attempting to set the value of one element, it actually sets multiple elements.

[issue1580] Use shorter float repr when possible

2008-06-09 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti [EMAIL PROTECTED]: -- nosy: +alexandre.vassalotti ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1580 ___ ___

[issue3064] new turtle module for Python 3.0

2008-06-09 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Thanks for the patch. Committed as r64061. Notice that the turtle module was meanwhile moved into the tkinter package. If you think it should stay as a toplevel module, you should discuss that on stdlib-sig.

[issue3064] new turtle module for Python 3.0

2008-06-09 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3064 ___

[issue2919] Merge profile/cProfile in 3.0

2008-06-09 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: I will try to fix issue. I cannot promise that I will get it done before the beta though. -- nosy: +alexandre.vassalotti ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2919

[issue3072] Assignment to list of lists gives incorrect result

2008-06-09 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This is not a bug. Please read about references in Python, and what this means: py b=[0] py a=[b,b] py a[0] is a[1] True py c=[[0],[0]] py c[0] is c[1] False py c[0] == c[1] True In short, there is only a single list stored in the variable