[issue14126] Speed up list comprehensions by preallocating the list where possible

2012-02-25 Thread Alex Gaynor
New submission from Alex Gaynor : This adds a new opcode which for certain list comprehensions (ones with no if statements and only a single comprehension), preallocates the list to the appropriate size. Patch is against 2.7, because it was a bit easier. On: def f(): for i in range(1000

[issue14126] Speed up list comprehensions by preallocating the list where possible

2012-02-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14123] Doc change re old and new string formatting

2012-02-25 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: On Sun, Feb 26, 2012 at 00:11, Ned Deily wrote: > "shallow copy" and "deep copy" are both standard computer science terms by no > means unique to or invented by Python.  We should be cautious about > documentation bloat and trying to redefine standard t

[issue14123] Indicate that there are no current plans to deprecate printf-style formatting

2012-02-25 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- title: Doc change re old and new string formatting -> Indicate that there are no current plans to deprecate printf-style formatting ___ Python tracker _

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Shallow' is a common English word: "Stay in shallow water until you learn to swim!" But that is not the issue here. I think the underlying issue is that the first sentence "All slice operations return a new list containing the requested elements." is wrong.

[issue14075] argparse: unused method?

2012-02-25 Thread Steven Bethard
Steven Bethard added the comment: It's undocumented, and it begins with an underscore, but it would certainly be safer to deprecate it first. -- ___ Python tracker ___

[issue14075] argparse: unused method?

2012-02-25 Thread Geoffrey Spear
Geoffrey Spear added the comment: If people do override this provate method, would they really bother calling super() to get the essentially no-op functionality of the superclass method? FWIW, Google Code and github both seem to be free of any such code. -- _

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the shallow/deep terminology is not unique to Python and is commonly used in computer science. In my experience teaching Python, the terms are somewhat self-descriptive and only become perplexing when someone over-explains them. That said, a glossar

[issue14126] Speed up list comprehensions by preallocating the list where possible

2012-02-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low type: -> performance ___ Python tracker ___ ___ Py

[issue14123] Indicate that there are no current plans to deprecate printf-style formatting

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: I’d like to make a patch with Nick’s text and a few examples. -- assignee: docs@python -> eric.araujo nosy: +eric.araujo, ncoghlan stage: -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker

[issue13770] python3 & json: add ensure_ascii documentation

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: json in 2.7 works a bit differently; ensure_ascii is already documented there. Closing, please reopen if the new doc is not to your satisfaction. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: -Python 2.7 __

[issue13467] Typo in doc for library/sysconfig

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset c78b41fa5258 by Éric Araujo in branch '2.7': Fix typo (#13467) http://hg.python.org/cpython/rev/c78b41fa5258 -- ___ Python tracker ___

[issue2945] bdist_rpm does not list dist files (should effect upload)

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f606d722ca23 by Éric Araujo in branch '2.7': Stop ignoring RPMs in distutils' upload command (#2945). http://hg.python.org/cpython/rev/f606d722ca23 -- ___ Python tracker

[issue13716] distutils doc contains lots of XXX

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e853ea9efc6e by Éric Araujo in branch '2.7': Hide or remove user-visible XXX notes from distutils doc (#13716). http://hg.python.org/cpython/rev/e853ea9efc6e -- ___ Python tracker

[issue6715] xz compressor support

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c22281e967c by Éric Araujo in branch '2.7': Improve interlinking of archiving/compression modules docs. http://hg.python.org/cpython/rev/7c22281e967c -- ___ Python tracker

[issue1040439] Missing documentation on how to link with libpython

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Is there any reason not to backport to 2.7? (Yes, I’m volunteering.) -- ___ Python tracker ___ ___

[issue3445] Ignore missing attributes in functools.update_wrapper

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Well, Nick judged that this was not a bug per se, but rather a request for enhancement, thus it was only committed to 3.3. -- ___ Python tracker _

[issue14075] argparse: unused method?

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: > It's undocumented, and it begins with an underscore, but it would certainly > be safer > to deprecate it first. Ah, somehow I misunderstood your earlier comment and thought _get_args had been publicized. Removing is safe then. Geoffrey: > If people do overri

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 937b1613d0e6 by Éric Araujo in branch 'default': Port the #6884 fix to packaging http://hg.python.org/cpython/rev/937b1613d0e6 -- ___ Python tracker __

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2887f5a97075 by Éric Araujo in branch '3.2': Add test file for scripts in Tools (#13447). http://hg.python.org/cpython/rev/2887f5a97075 -- ___ Python tracker

[issue2945] bdist_rpm does not list dist files (should effect upload)

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Fixed in 2.7 too, thanks to you both. If you have the time to run the tests, it would be great to get a confirmation (I’m not sure we have a buildbot with rpm installed for 2.7). -- resolution: -> fixed stage: patch review -> committed/rejected status:

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: > I meant "Test for Tools" instead of """Tests for reindent.py.""" Looks like you missed the message where I wrote how I changed s/reindent.py/scripts in the Tools directory/ Committed! Now we can tackle all these nasty pygettext and msgfmt bugs, and I will al

[issue13716] distutils doc contains lots of XXX

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Done. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: behavior -> enhancement ___ Python tracker __

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: I’ve ported the fix to packaging without testing, the buildbots will shout at me if I made a mistake. For distutils2 however I have no tester and no bot, so could someone test this patch? (repo is at http://hg.python.org/distutils2) BTW if someone knows about

[issue13224] Change str(x) to return only the (qual)name for some types

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Ping: I’d like opinions on the request in my last message; -- ___ Python tracker ___ ___ Python-bugs-l

[issue14107] Debian bigmem buildbot hanging in test_bigmem

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: The buildbot still isn't happy: http://www.python.org/dev/buildbot/all/builders/AMD64%20debian%20bigmem%203.x/builds/144/steps/test/logs/stdio Also, I ran the test on my own machine and noticed two tests that are still exceeding their nominal peak memory us

[issue14081] Allow "maxsplit" argument to str.split() to be passed as a keyword argument

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset db968ac2b82c by Ezio Melotti in branch 'default': #14081: The sep and maxsplit parameter to str.split, bytes.split, and bytearray.split may now be passed as keyword arguments. http://hg.python.org/cpython/rev/db968ac2b82c -- nosy: +python-

[issue14081] Allow "maxsplit" argument to str.split() to be passed as a keyword argument

2012-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed! Thanks for the reviews and for spotting the extra '['. (While suggesting the use of maxsplit, be aware that str.split uses -1 as default value, whereas re.split uses 0.) -- resolution: -> fixed stage: commit review -> committed/rejected status: o

<    1   2