[issue13006] bug in core python variable binding

2011-09-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is a bug in the script; the code is similar to the following:: funclist = [] global_list = [] funclist.append(global_list) global_list.append(1) funclist.append(global_list) print funclist [[1], [1]] i.e the

[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-09-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset dc16b6ab8e71 by Ross Lagerwall in branch 'default': Issue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa). http://hg.python.org/cpython/rev/dc16b6ab8e71 -- nosy: +python-dev

[issue13004] pprint: add option to truncate sequences

2011-09-19 Thread Steven Samuel Cole
Changes by Steven Samuel Cole steven.samuel.c...@gmail.com: -- nosy: +ssc title: pprint: add option to truncate seqeunces - pprint: add option to truncate sequences ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13004

[issue12958] test_socket failures on Mac OS X

2011-09-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a4e4facad164 by Nick Coghlan in branch 'default': Close issue 12958 by flagging expected failures in test_socket on Mac OS X http://hg.python.org/cpython/rev/a4e4facad164 -- nosy: +python-dev resolution: -

[issue12537] mailbox's _become_message is very fragile

2011-09-19 Thread David Lam
David Lam d...@dlam.me added the comment: This patch deletes the leftover special attributes. Thanks for guiding me through my confusion and/or cluelessness! -- keywords: +patch Added file: http://bugs.python.org/file23191/12537.patch ___ Python

[issue12537] mailbox's _become_message is very fragile

2011-09-19 Thread David Lam
Changes by David Lam d...@dlam.me: Added file: http://bugs.python.org/file23192/12537.find.attribute.differences.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12537 ___

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: We could also look at what other languages do and/or ask to the Unicode consortium [0]. [0]: http://www.unicode.org/consortium/distlist.html -- ___ Python tracker rep...@bugs.python.org

[issue11357] Add support for PEP 381 Mirror Authenticity

2011-09-19 Thread intgr
Changes by intgr ma...@juffo.org: -- nosy: +intgr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11357 ___ ___ Python-bugs-list mailing list

[issue12961] itertools: unlabelled balls in boxes

2011-09-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Balls-in-boxes _is_ one of the most basic of the canonical combinatorial problems. Agreed. But in its basic form, this is covered by itertools.combinations, isn't it? It may be worth a doc recipe showing how to use

[issue12943] tokenize: add python -m tokenize support back

2011-09-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Updated patch fixing some issues pointed out by Ezio on Rietveld. -- Added file: http://bugs.python.org/file23193/issue12943-3.patch ___ Python tracker rep...@bugs.python.org

[issue9561] distutils: set encoding to utf-8 for input and output files

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I backported your last change to distutils2 as f5a74b1f9473. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9561 ___

[issue10946] bdist doesn’t pass --skip-build on to subcommands

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Fixed in distutils2 in 95172b1c5498. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10946 ___

[issue8933] Invalid detection of metadata version

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Fixed in distutils2 in b9ca25b3254e. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8933 ___

[issue12785] list_distinfo_file is wrong

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Backported to distutils2 as 5e49c9bc43eb. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12785 ___

[issue12961] itertools: unlabelled balls in boxes

2011-09-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: And using combinations_with_replacement, it's even a one-liner: balls_in_boxes = lambda n, k: (tuple(map(c.count, range(k))) for c in combinations_with_replacement(range(k), n)) for item in balls_in_boxes(5,3): print(item) ... (5, 0, 0)

[issue12987] Demo/scripts/newslist.py has non-free licensing terms

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t see any problem with removing it from the 2.7 branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12987 ___

[issue4256] argparse: provide a simple way to get a programmatically useful list of options

2011-09-19 Thread Marc Sibson
Changes by Marc Sibson sib...@gmail.com: -- nosy: +marcs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4256 ___ ___ Python-bugs-list mailing list

[issue11176] give more meaningful argument names in argparse documentation

2011-09-19 Thread Marc Sibson
Changes by Marc Sibson sib...@gmail.com: -- nosy: +marcs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11176 ___ ___ Python-bugs-list mailing list

[issue12933] Update or remove claims that distutils requires external programs

2011-09-19 Thread Marc Sibson
Changes by Marc Sibson sib...@gmail.com: -- nosy: +marcs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12933 ___ ___ Python-bugs-list mailing list

[issue11037] State of PEP 382 or How does distutils2 handle namespaces?

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: As a question about a proposed PEP which is not accepted and has a competitor (see python-threads about PEP 402), this is not really a bug report. Closing. -- assignee: tarek - eric.araujo resolution: - invalid stage: -

[issue12314] regrtest checks (os.environ, sys.path, etc.) are hard to use

2011-09-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9c61f46ea6b4 by Éric Araujo in branch 'default': Make regrtest look at internal dicts in sysconfig. http://hg.python.org/cpython/rev/9c61f46ea6b4 -- nosy: +python-dev ___

[issue13007] gdbm 1.9 has new magic that whichdb does not recognize

2011-09-19 Thread Marien Zwart
New submission from Marien Zwart m_zw...@123mail.org: dbm.whichdb (python 3) and whichdb.whichdb (python 2) only check for magic == 0x13579ace to recognize gdbm databases. The recently released gdbm 1.9 series adds 0x13579acd (for 32bit) and 0x13579acf (for 64bit) magics (see src/gdbmconst.h

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-19 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: This is self-explanative. Function definitions are identical. Syntax error caused by the absence of empty line after the function definition. Python 2.7.1 (r271:86832, Apr 12 2011, 16:16:18) [GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on

[issue8591] update mkpkg to latest coding standards

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Changing “if s in 'yn'” to “if s in ('y', 'n')” is not really an improvement. It’s not more readable to always use tuples or frozensets for membership testing; str has __contains__ for a reason :) Let me eat my words: using “in 'yn'” matches

[issue13007] gdbm 1.9 has new magic that whichdb does not recognize

2011-09-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- assignee: - jcea nosy: +jcea versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13007 ___

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If you point out the reST files with examples that don’t work when copy-pasted, we can fix them. Changing the behavior of the interpreter itself is probably not possible. -- nosy: +eric.araujo ___

[issue13007] gdbm 1.9 has new magic that whichdb does not recognize

2011-09-19 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I have a question... What about the endianness of the data?. For instance, if an Intel machine (little endian) creates a GDBM file, can it a) be recognized as such in Sparc (big endian)? b) Can be open and used in Sparc? --

[issue8891] shutil: sort files before archiving for consistency

2011-09-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Library (Lib) -Distutils2 stage: test needed - needs patch title: sort files before archiving for consistency - shutil: sort files before archiving for consistency versions: +Python 3.3 -3rd party

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-19 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: If changing behavior of console is not possible now, schedule it for python4. http://stackoverflow.com/questions/1392413/calculating-a-directory-size-using-python/1392549#1392549 -- ___ Python

[issue11913] sdist refuses README.rst

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: When I upload modules to PyPI, distutils is clucking about a missing README, even though PyPI accepts README.rst, and I am providing that. PyPI doesn’t do anything with README, it displays the value of long_description. warning: sdist:

[issue12145] distutils2 should support README.rst

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Closing as duplicate. -- assignee: tarek - eric.araujo resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - sdist refuses README.rst ___ Python tracker

[issue13007] gdbm 1.9 has new magic that whichdb does not recognize

2011-09-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13007 ___

[issue13009] Remove documentation in distutils2 repo

2011-09-19 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: The docs for packaging now live at docs.python.org. Maintaining separate documentation for the distutils2 backport would take much time for little benefit. Tarek agreed that we could just delete them, so I will remove them, add a file to

[issue13009] Remove documentation in distutils2 repo

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (Replying to myself to avoid this showing up in the weekly report as unanswered) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13009 ___

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-19 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Ezio Melotti rep...@bugs.python.org wrote on Mon, 19 Sep 2011 11:11:48 -: We could also look at what other languages do and/or ask to the Unicode consortium. I will look at what Java does a bit later on this morning, which is the

[issue13007] gdbm 1.9 has new magic that whichdb does not recognize

2011-09-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 14cafb8d1480 by Jesus Cea in branch '2.7': Close #13007: whichdb should recognize gdbm 1.9 magic numbers http://hg.python.org/cpython/rev/14cafb8d1480 New changeset 7a41855b6196 by Jesus Cea in branch '3.2': Close

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Tom Christiansen wrote: I'm pretty sure that anything that claims to be UTF-{8,16,32} needs to reject both surrogates *and* noncharacters. Here's something from the published Unicode Standard's p.24 about noncharacter code points:

[issue12973] int_pow() implementation is incorrect

2011-09-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 07efe83795b0 by Mark Dickinson in branch '2.7': Issue #12973: Fix int.__pow__ overflow checks that invoked undefined behaviour, thereby producing incorrect results on Clang.

[issue12930] reindent.py inserts spaces in multiline literals

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Follow the “review” link for some comments. Do you have a test file that I could use to reproduce the bug and make sure it’s fixed? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue12585] distutils dereferences symlinks for zip but not for bztar/gztar target

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: So, do you think adding a warning about symlink handling issues in the docs would be enough? Given the constraints, yes, it would be good to have that warning in the docs. Okay. Adding the easy keyword to lure contributors. Even better

[issue12344] Add **kwargs to get_reinitialized_command

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’d like to commit this; do you need help to address the review I did, or do you want me to take over if you don’t have the time? -- ___ Python tracker rep...@bugs.python.org

[issue793069] Add --remove-source option

2011-09-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: tarek - eric.araujo resolution: accepted - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue793069

[issue12395] packaging remove fails under Windows

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If I’m not mistaken, 2b9a0a091566 fixed this. -- resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - packaging: fix database to stop skipping uninstall tests on win32

[issue12585] distutils dereferences symlinks for zip but not for bztar/gztar target

2011-09-19 Thread Florian Berger
Florian Berger fber...@florian-berger.de added the comment: Okay. Adding the easy keyword to lure contributors. Thanks. I wonder if there is something to fix at all; tar is a smart container format whereas zip is simpler, so I would not be surprised if the source of the difference is just

[issue12393] Packaging should provide support for extensible categories

2011-09-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Basic support for categories now added to install_data: Can you add tests? I couldn't see a packaging.util function for matching lines of type key = value, If there are many places that could benefit from such a function, we can add it.

[issue12344] Add **kwargs to get_reinitialized_command

2011-09-19 Thread Thomas Holmes
Thomas Holmes tho...@devminded.com added the comment: I got a bit distracted and I think had some questions on the review. I will go back over the state of this patch and get some feedback to you tonight or tomorrow evening. -- ___ Python tracker

[issue13010] devguide doc: ./python.exe on OS X

2011-09-19 Thread Steven Samuel Cole
New submission from Steven Samuel Cole steven.samuel.c...@gmail.com: it says in the last paragraph of the chapter at http://docs.python.org/devguide/setup.html#unix: [...] ./python.exe on OS X [...] .exe seems to indicate that should probably be './python.exe on Windows' -- assignee:

[issue13010] devguide doc: ./python.exe on OS X

2011-09-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I believe it's ./python.exe on OS X. I'm not sure about Windows, maybe it's just python.exe there. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org

[issue13010] devguide doc: ./python.exe on OS X

2011-09-19 Thread Steven Samuel Cole
Steven Samuel Cole steven.samuel.c...@gmail.com added the comment: i've gone through the process of checking out and building python as described in the devguide; it seems the python executable is indeed called python.exe under mac osx. i find this confusing. a comment on the reason for this

[issue13010] devguide doc: ./python.exe on OS X

2011-09-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It is python.exe on OS/X, which I've always found most odd. The reason is that the OS/X filesystem is case insensitive by default, and there is a directory named 'Python'. -- nosy: +r.david.murray

[issue13010] devguide doc: ./python.exe on OS X

2011-09-19 Thread Steven Samuel Cole
Steven Samuel Cole steven.samuel.c...@gmail.com added the comment: from my observations, david is correct, but this is not limited to os x. i have checked out and rebuilt python twice on a linux system (kubuntu 10.10 i386 virtual machine): 1. in a 'conventional' setup using a local (i.e.

[issue12944] setup.py upload to pypi needs to work with specified files

2011-09-19 Thread Glyph Lefkowitz
Glyph Lefkowitz gl...@twistedmatrix.com added the comment: This has been a serious annoyance in the Twisted and pyOpenSSL release processes; it effectively prevents us from timely uploads of win32 binaries of any kind. -- nosy: +glyph ___ Python

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-19 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I'm not Barry or Benjamin, but having followed the thread on p...@python.org, this certainly looks like a security issue to me. As a second pair of eyes, I recommend MvL, who builds our Windows installers. -- nosy: +gvanrossum,

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Approved for 3.1 as far as I'm concerned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12989 ___

[issue12973] int_pow() implementation is incorrect

2011-09-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 99b808c94834 by Mark Dickinson in branch '3.2': Issue #12973: Fix undefined-behaviour-inducing overflow check in list_repeat. http://hg.python.org/cpython/rev/99b808c94834 New changeset 2dbd5870de0b by Mark

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-19 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: No good news on the Java front. They do all kinds of things wrong. For example, they allow intermixed CESU-8 and UTF-8 in a real UTF-8 input stream, which is illegal. There's more they do wrong, including in their documentation, but I

[issue12973] int_pow() implementation is incorrect

2011-09-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f8280cf63d9e by Mark Dickinson in branch '2.7': Backport issue #12973 list_repeat fix from 3.x. http://hg.python.org/cpython/rev/f8280cf63d9e -- ___ Python tracker

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-19 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: On Sun 18 Sep 2011, Charles-François Natali wrote: I had a look at this patch, and the FD passing looked OK, except that calculating the buffer size with CMSG_SPACE() may allow more than one file descriptor to be received, with

[issue12976] add support for MirBSD platform

2011-09-19 Thread Benny Siegert
Benny Siegert bsieg...@gmail.com added the comment: Hmm, I thought I was making an argument _for_ applying the patch. As I see it, these are benefits of merging the patch: 1. Being able to compile an unmodified upstream Python on MirBSD. 2. The patches in pkgsrc become smaller. 3. Future

[issue13004] pprint: add option to truncate sequences

2011-09-19 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13004 ___ ___

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-19 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Brian, you marked this 'patch review', bypassing 'test needed'. Should this have any visible effect at the Python level that can be tested? -- ___ Python tracker rep...@bugs.python.org

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-19 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: It appears that I'm right about surrogates, but wrong about noncharacters. I'm seeking a clarification there. --tom -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12729

[issue12930] reindent.py inserts spaces in multiline literals

2011-09-19 Thread Caio Romão
Changes by Caio Romão caioro...@gmail.com: Removed file: http://bugs.python.org/file23146/caioromao-fix-12930-v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12930 ___

[issue12930] reindent.py inserts spaces in multiline literals

2011-09-19 Thread Caio Romão
Caio Romão caioro...@gmail.com added the comment: New patch version ack-ing Éric's suggestion. Note: I'm now confused as to whether I should add my name to the ACKS file or not, heh. This patch doesn't include the change. -- Added file:

[issue12930] reindent.py inserts spaces in multiline literals

2011-09-19 Thread Caio Romão
Caio Romão caioro...@gmail.com added the comment: Attaching files for testing in a gzipped tarball: - testfile-original.py: file to be reindented with reindent.py - testfile-issue.py: resulting file after using the current Tools/scripts/reindent.py - testfile-expected.py: expected output

[issue13011] Frozen programs require the original build directory in order to run.

2011-09-19 Thread Malcolm Purvis
New submission from Malcolm Purvis malc...@purvis.id.au: In Python 2.7.2, Linux executables built with freeze.py will only run on the machine that contains the original build directory. This defeats the purpose of having frozen programs. This problem did not exist in Python 2.5. The

[issue13004] pprint: add option to truncate sequences

2011-09-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: This needs to be part of the overall effort to build a better pprint. See http://bugs.python.org/issue7434 -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker

[issue12943] tokenize: add python -m tokenize support back

2011-09-19 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Updated patch which adds and documents a '-h,--help' option. This option was suggested during code review. -- Added file: http://bugs.python.org/file23196/issue12943-4.patch ___ Python tracker

[issue7434] general pprint rewrite

2011-09-19 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7434 ___ ___ Python-bugs-list

[issue12976] add support for MirBSD platform

2011-09-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: You said I can maintain the patch for future releases. This sounds like a reasonable solution: you keep maintaining the patch; if you want python.org to link to your patch, we can certainly arrange that. By the no minority platforms

[issue13004] pprint: add option to truncate sequences

2011-09-19 Thread anand jeyahar
anand jeyahar anand.jeya...@gmail.com added the comment: Umm... Excuse me but how is this max_length parameter different from the (existing)depth parameter? pformat(object,depth=3) seems to do the same thing. -- nosy: +anandjeyahar ___ Python