[issue2788] ignore file for Mercurial

2008-05-08 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- assignee: - georg.brandl nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2788 __ ___ Python-bugs-list

[issue2785] alternate fast builtin sum

2008-05-08 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: The one example given may not be convincing, other ones may be. What is it in the submitted version which is not designed carefully or which may not produce the same results? __ Tracker [EMAIL PROTECTED]

[issue2785] alternate fast builtin sum

2008-05-08 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: The approach of using separate accumulations is intrinsically flawed if you want the same result as a regular sum(). Here's a small dataset that shows why you can't accumulate separate sums by type: d = [1000, -

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
New submission from Ralf Schmitt [EMAIL PROTECTED]: sys.flags is missing bytes_warning: Python 2.6a2+ (trunk, May 8 2008, 12:09:50) [GCC 4.2.3 (Debian 4.2.3-3)] on linux2 Type help, copyright, credits or license for more information. sys.flags sys.flags(debug=0, py3k_warning=0,

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: brett, I added you to the nosy list, as you seem to have committed this in r62303 (http://hgpy.de/py/trunk/rev/ac1ae32a476c) -- nosy: +brett.cannon __ Tracker [EMAIL PROTECTED]

[issue1770190] platform.mac_ver() returning incorrect patch version

2008-05-08 Thread Ronald Oussoren
Ronald Oussoren [EMAIL PROTECTED] added the comment: I've tested the patch on 10.4.10 as wel as 10.5.2 and it returns the right version on both platforms. Commited as revision 62854 (trunk) and 62855 (python2.5 branch) -- assignee: jackjansen - ronaldoussoren resolution: - fixed

[issue2547] Py30a4 RELNOTES only cover 30a1 and 30a2

2008-05-08 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: I've updated the release script to at least touch RELNOTES, but I'm unsure as to what the policy is for updating the content of this file. I'm closing this issue but will bring it up on the mailing list. __

[issue2547] Py30a4 RELNOTES only cover 30a1 and 30a2

2008-05-08 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2547 __ ___ Python-bugs-list

[issue2791] subprocess.py leaks fd in communicate

2008-05-08 Thread Joel Rosdahl
New submission from Joel Rosdahl [EMAIL PROTECTED]: The optimization in SVN rev 38556 seems to have changed Popen.communicate's behavior when stdout is subprocess.PIPE (and maybe for other cases as well). See the attached file. In Python 2.4.5, all three counts are the same. In Python 2.5.2,

[issue1346238] A constant folding optimization pass for the AST

2008-05-08 Thread Jeremy Hylton
Changes by Jeremy Hylton [EMAIL PROTECTED]: -- nosy: +jhylton _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1346238 _ ___ Python-bugs-list mailing list

[issue2650] re.escape should not escape underscore

2008-05-08 Thread Alexander Belopolsky
Alexander Belopolsky [EMAIL PROTECTED] added the comment: Lorenz's patch uses a set, not a list for special characters. Set lookup is as fast as dict lookup, but a set takes less memory because it does not have to store dummy values. More importantly, use of frozenset instead of dict makes

[issue2523] binary buffered reading is quadratic

2008-05-08 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Some code relies on -1 being usable as the default value for read() (instead of None), this new patch conforms to this expectation. It fixes some failures in test_mailbox. Added file: http://bugs.python.org/file10222/binaryio2.patch

[issue2650] re.escape should not escape underscore

2008-05-08 Thread Russ Cox
Russ Cox [EMAIL PROTECTED] added the comment: Lorenz's patch uses a set, not a list for special characters. Set lookup is as fast as dict lookup, but a set takes less memory because it does not have to store dummy values. More importantly, use of frozenset instead of dict makes the code

[issue2650] re.escape should not escape underscore

2008-05-08 Thread Alexander Belopolsky
Alexander Belopolsky [EMAIL PROTECTED] added the comment: On Thu, May 8, 2008 at 10:36 AM, Russ Cox [EMAIL PROTECTED] wrote: .. The title of this issue (#2650) is re.escape should not escape underscore, not re.escape is too slow and too easy to read. Neither does the title say re.escape

[issue2650] re.escape should not escape underscore

2008-05-08 Thread Russ Cox
Russ Cox [EMAIL PROTECTED] added the comment: You don't need to get so defensive. I did not raise a performance problem, I was simply responding to Rafael's AFAIK the lookup on dictionaries is faster than on lists comment. I did not say that you *should* rewrite your patch the way I

[issue2650] re.escape should not escape underscore

2008-05-08 Thread Russ Cox
Russ Cox [EMAIL PROTECTED] added the comment: On Thu, May 8, 2008 at 12:12 PM, Alexander Belopolsky [EMAIL PROTECTED] wrote: Alexander Belopolsky [EMAIL PROTECTED] added the comment: On Thu, May 8, 2008 at 11:45 AM, Russ Cox [EMAIL PROTECTED] wrote: .. My argument is only that Python

[issue2650] re.escape should not escape underscore

2008-05-08 Thread A.M. Kuchling
A.M. Kuchling [EMAIL PROTECTED] added the comment: I haven't assessed the patch, but wouldn't mind to see it applied to an alpha release or to 3.0; +0 from me. Given that the next 2.6 release is planned to be a beta, though, the release manager would have to rule. Note that I don't think this

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Christian Heimes
Changes by Christian Heimes [EMAIL PROTECTED]: -- assignee: - christian.heimes nosy: +christian.heimes priority: - high __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2790 __

[issue2630] repr() should not escape non-ASCII characters

2008-05-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-05-06 19:10, Guido van Rossum wrote: Guido van Rossum [EMAIL PROTECTED] added the comment: On Tue, May 6, 2008 at 1:26 AM, Marc-Andre Lemburg wrote: So you've limited the codec design to just doing Unicode-bytes conversions

[issue2630] repr() should not escape non-ASCII characters

2008-05-08 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: I'd be happy to have a separate more relaxed API for stackable codecs, however, the API should not be overloaded on the .encode() and .decode() methods on str and bytes objects. __ Tracker [EMAIL PROTECTED]

[issue2778] set_swap_bodies is unsafe

2008-05-08 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Added documentation in r62873. Leaving the code as-is. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2778 __

[issue2748] ceil(), floor() and round() broken in Decimal

2008-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- assignee: rhettinger - marketdickinson __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2748 __ ___ Python-bugs-list

[issue2778] set_swap_bodies is unsafe

2008-05-08 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: Nevermind that the current implementation *is* broken, even if you consider fixing it to be a low priority. Closing the report with a doc tweak isn't right. __ Tracker [EMAIL PROTECTED]

[issue2778] set_swap_bodies is unsafe

2008-05-08 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Sorry, you don't like the search with autopromotion feature. It has been around since sets were first coded in C. It is a natural extension/consequence of the idea that frozenset('abc')==set('abc'). __

[issue2778] set_swap_bodies is unsafe

2008-05-08 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: So why doesn't set() in {} work? Why was PEP 351 rejected when it would do this properly? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2778 __

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Ralf, can you do a ``make clean`` and then try again? I had this happen to me with an old checkout until I did that and then everything worked fine. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2790

[issue2651] Strings passed to KeyError do not round trip

2008-05-08 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Wouldn't it be nice to also store the offending key as a key attribute? Writing key_error.key is a lot intuitive than key_error.args[0] (or is it key_error.args[1] ? I've already forgotten :-)). -- nosy: +pitrou

[issue2786] Names in traceback should have class names, if they're methods

2008-05-08 Thread Alexander Belopolsky
Alexander Belopolsky [EMAIL PROTECTED] added the comment: This is similar to issue2516. -- nosy: +belopolsky __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2786 __ ___

[issue2792] alternate fast builtin sum, rev'd

2008-05-08 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: Here is one more, final attempt to improve fast summation, somewhat. This version inspects the type of both the sum and the first item and adds all ints and floats without any PyNumber_Add() call and in order. Also, the results for this

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: sure, I even removed the whole source tree: ~/pydev/trunk/ ./python [EMAIL PROTECTED] ok Python 2.6a3+ (trunk, May 8 2008, 21:52:39) [GCC 4.2.3 (Debian 4.2.3-3)] on linux2 Type help, copyright, credits

[issue2793] Dictionary fails to index when adding list when in a deeply nested loop

2008-05-08 Thread James Nadir
New submission from James Nadir [EMAIL PROTECTED]: Python fails to correctly add 'lists' into a 'dictionary' in nested loop. The attached py file has two examples; the first is the failing example, the seond is the passing example. This might be a known issue. If so, please accept my

[issue2794] Figure directive not handled for latex writing in Sphinx

2008-05-08 Thread Ali Afshar
New submission from Ali Afshar [EMAIL PROTECTED]: .. figure:: directive is not handled when writing to latex, and this directive seems the only way to have a captioned image in rst. I have added a patch that simply handles the figure, and captions. Note that figures have an additional

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Fixed in r62896. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2790 __

[issue2780] Python 3.0a4 crashes on script in a path with non-ASCII characters (Windows)

2008-05-08 Thread Tim Pietzcker
Tim Pietzcker [EMAIL PROTECTED] added the comment: I should perhaps add that this happened on a German Windows XP Pro SP2 installation. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2780 __

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: why not use sizeof? you'll probably run into this again.. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2790 __ ___

[issue1342] Crash on Windows if Python runs from a directory with umlauts

2008-05-08 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: I'm increasing the severity of the bug. It's a still a major show stopper for non-English Windows users. For example see #2780 -- priority: normal - release blocker __ Tracker [EMAIL PROTECTED]

[issue2793] Dictionary fails to index when adding list when in a deeply nested loop

2008-05-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: No, there is no problem with Python here. In your failing example, you insert the same object (new_record) into the dictionary. Right, you modify its content, but it is still the same list object; All values in the dictionary are the

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: btw, I guess that sentinel entry in that array could also be removed? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2790 __

[issue2780] Python 3.0a4 crashes on script in a path with non-ASCII characters (Windows)

2008-05-08 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Das Problem ist bekannt. Trotzdem danke! -- nosy: +christian.heimes resolution: - duplicate status: open - closed superseder: - Crash on Windows if Python runs from a directory with umlauts __

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: I didn't use sizeof because I didn't think of it; the solution to just change the numbers was right in front of me and I am swamped with other work so I went with what I knew would work. As for removing the array, perhaps, but I don't have

[issue2448] namedtuple breaks refleak tests

2008-05-08 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: The tests are passing again. -- resolution: - out of date status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2448 __

[issue2790] sys.flags is missing bytes_warning

2008-05-08 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: ok brett, I see in IRC you're doing lot's of commits currently. sorry for bothering you. I'll maybe try myself, it's a minor issue anyway... __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2790

[issue1799] PEP 370

2008-05-08 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: The PEP370 has been accepted and the patch has been applied. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1799

[issue2792] alternate fast builtin sum, rev'd

2008-05-08 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Attached is a slightly better version, making the float loop cleaner. Use this one and disregard the earlier one, bltinmodule3.c.diff. /Jean Brouwers Added file: http://bugs.python.org/file10226/bltinmodule4.c.diff

[issue2795] rename Caveat to Warning

2008-05-08 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: The reST directive warning gives a orange box with Caveat in bold letters. I think this makes assumptions about the contents of the box (Warning is broader than caveat). Could it be changed to just Warning? -- assignee:

[issue2792] alternate fast builtin sum, rev'd

2008-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- assignee: - rhettinger nosy: +rhettinger __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2792 __ ___ Python-bugs-list

[issue2795] rename Caveat to Warning

2008-05-08 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: +1 -- nosy: +rhettinger __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2795 __ ___ Python-bugs-list mailing list

[issue2784] fast builtin sum may leak

2008-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- priority: - high __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2784 __ ___ Python-bugs-list mailing list