[issue13006] bug in core python variable binding
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 same object is added twice to funclist, any modification to the first item is a modification to the second. See also http://www.python.org/doc//current/faq/programming.html#how-do-i-create-a-multidimensional-list In your script, it's certainly happens because there are multiple nested blocks ('{' '}') in the same function ('$FUNC'), so global_list is still the *same* list. -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13006 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12517 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13004] pprint: add option to truncate sequences
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12958] test_socket failures on Mac OS X
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: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12958 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12537] mailbox's _become_message is very fragile
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 tracker rep...@bugs.python.org http://bugs.python.org/issue12537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12537] mailbox's _become_message is very fragile
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug
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 http://bugs.python.org/issue12729 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11357] Add support for PEP 381 Mirror Authenticity
Changes by intgr ma...@juffo.org: -- nosy: +intgr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11357 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12961] itertools: unlabelled balls in boxes
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 itertools.combinations for this (especially since the naive implementation---e.g., the one I posted on comp.lang.python, doesn't get boundary cases right). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12961 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12943] tokenize: add python -m tokenize support back
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 http://bugs.python.org/issue12943 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9561] distutils: set encoding to utf-8 for input and output files
É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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10946] bdist doesn’t pass --skip-build on to subcommands
Éric Araujo mer...@netwok.org added the comment: Fixed in distutils2 in 95172b1c5498. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10946 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8933] Invalid detection of metadata version
Éric Araujo mer...@netwok.org added the comment: Fixed in distutils2 in b9ca25b3254e. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8933 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12785] list_distinfo_file is wrong
Éric Araujo mer...@netwok.org added the comment: Backported to distutils2 as 5e49c9bc43eb. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12785 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12961] itertools: unlabelled balls in boxes
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) (4, 1, 0) (4, 0, 1) (3, 2, 0) (3, 1, 1) (3, 0, 2) (2, 3, 0) (2, 2, 1) (2, 1, 2) (2, 0, 3) (1, 4, 0) (1, 3, 1) (1, 2, 2) (1, 1, 3) (1, 0, 4) (0, 5, 0) (0, 4, 1) (0, 3, 2) (0, 2, 3) (0, 1, 4) (0, 0, 5) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12961 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12987] Demo/scripts/newslist.py has non-free licensing terms
É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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4256] argparse: provide a simple way to get a programmatically useful list of options
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 Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11176] give more meaningful argument names in argparse documentation
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 Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12933] Update or remove claims that distutils requires external programs
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 Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11037] State of PEP 382 or How does distutils2 handle namespaces?
É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: - committed/rejected status: open - closed title: State of PEP 382 or How does distutils2 handle namespaces? - State of PEP 382 or How does distutils2 handle namespaces? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11037 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12314] regrtest checks (os.environ, sys.path, etc.) are hard to use
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12314 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13007] gdbm 1.9 has new magic that whichdb does not recognize
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 in the gdbm-1.9 or gdbm-1.9.1 source tree). Python's gdbm linked to gdbm 1.9 creates databases with the new magic, which causes the whichdb tests to fail. To reproduce this just build python against the new libgdbm and run test/test_dbm.py. whichdb should probably just check for the two new magic numbers too. This will cause it to recognize the new gdbm databases even if python's gdbm extension is linked to an older version of gdbm that cannot open them, but that is probably less likely to cause problems than the current behavior, where a database created by python's gdbm is not recognized as such. (I've left the Versions field untouched as I do not know which versions of python this should be backported to, but it affects all of them.) -- components: Library (Lib) messages: 144277 nosy: marienz priority: normal severity: normal status: open title: gdbm 1.9 has new magic that whichdb does not recognize type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13007 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13008] syntax error when pasting valid snippet into console without empty string after the function def
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 linux2 Type help, copyright, credits or license for more information. import os def get_size(start_path = '.'): ... total_size = 0 ... for dirpath, dirnames, filenames in os.walk(start_path): ... for f in filenames: ... fp = os.path.join(dirpath, f) ... total_size += os.path.getsize(fp) ... return total_size ... print get_size() 1595969238 def get_size(start_path = '.'): ... total_size = 0 ... for dirpath, dirnames, filenames in os.walk(start_path): ... for f in filenames: ... fp = os.path.join(dirpath, f) ... total_size += os.path.getsize(fp) ... return total_size ... print get_size() File stdin, line 8 print get_size() ^ SyntaxError: invalid syntax -- messages: 144278 nosy: techtonik priority: normal severity: normal status: open title: syntax error when pasting valid snippet into console without empty string after the function def versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13008 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8591] update mkpkg to latest coding standards
É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 '' and 'yn', which we don’t want. Changed in 10fd0d0895a1. -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13007] gdbm 1.9 has new magic that whichdb does not recognize
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13008] syntax error when pasting valid snippet into console without empty string after the function def
É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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13008 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13007] gdbm 1.9 has new magic that whichdb does not recognize
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? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13007 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8891] shutil: sort files before archiving for consistency
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8891 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13008] syntax error when pasting valid snippet into console without empty string after the function def
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 tracker rep...@bugs.python.org http://bugs.python.org/issue13008 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11913] sdist refuses README.rst
É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: standard file not found: should have one of README, README.txt Is it a problem to name your reST file README.txt? In packaging/distutils2, the recommended idiom looks like this (in setup.cfg): [metadata] description-file = README.whatever sdist will include that file. You can also write the description in the setup.cfg directly and have your README file included with the extra_files field. This can’t be changed in distutils and works differently without warning in distutils2; closing. -- assignee: tarek - eric.araujo resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11913 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12145] distutils2 should support README.rst
É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 rep...@bugs.python.org http://bugs.python.org/issue12145 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13007] gdbm 1.9 has new magic that whichdb does not recognize
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13007 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13009] Remove documentation in distutils2 repo
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 mention their new location and update the PyPI and packages.python.org pages. I’m opening this report to let people know, I don’t need a patch. -- assignee: eric.araujo components: Distutils2 messages: 144285 nosy: alexis, eric.araujo priority: normal severity: normal status: open title: Remove documentation in distutils2 repo versions: 3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13009 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13009] Remove documentation in distutils2 repo
É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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug
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 only other commonly used language besides C that I feel even reasonably competent at. I seem to recall that Java changed its default behavior on certain Unicode decoding issues from warnings to exceptions between one release and the next, but can't remember any details. As the Perl Foundation is a member of the Unicode Consortium and I am on the mailing list, I suppose I could just ask them. I feel a bit timid though because the last thing I brought up there was based on a subtle misunderstanding of mine regarding the IDC and Pattern_Syntax properties. I hate looking dumb twice in row. :) --tom -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12729 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13007] gdbm 1.9 has new magic that whichdb does not recognize
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 #13007: whichdb should recognize gdbm 1.9 magic numbers http://hg.python.org/cpython/rev/7a41855b6196 New changeset b194af345cb5 by Jesus Cea in branch 'default': Close #13007: whichdb should recognize gdbm 1.9 magic numbers http://hg.python.org/cpython/rev/b194af345cb5 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13007 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug
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: • Noncharacter code points are reserved for internal use, such as for sentinel values. They should never be interchanged. They do, however, have well-formed representations in Unicode encoding forms and survive conversions between encoding forms. This allows sentinel values to be preserved internally across Unicode encoding forms, even though they are not designed to be used in open interchange. And here from the Unicode Standard's chapter on Conformance, section 3.2, p. 59: C2 A process shall not interpret a noncharacter code point as an abstract character. • The noncharacter code points may be used internally, such as for sentinel values or delimiters, but should not be exchanged publicly. You have to remember that Python is used to build applications. It's up to the applications to conform to Unicode or not and the application also defines what exchange means in the above context. Python itself needs to be able to deal with assigned non-character code points as well as unassigned code points or code points that are part of special ranges such as the surrogate ranges. I'm +1 on not allowing e.g. lone surrogates in UTF-8 data, because we have a way to optionally allow these via an error handler, but -1 on making changes that cause full range round-trip safety of the UTF encodings to be lost without a way to turn the functionality back on. -- title: Python lib re cannot handle Unicode properly due to narrow/wide bug - Python lib re cannot handle Unicode properly due to narrow/wide bug ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12729 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12973] int_pow() implementation is incorrect
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. http://hg.python.org/cpython/rev/07efe83795b0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12973 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12930] reindent.py inserts spaces in multiline literals
É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 http://bugs.python.org/issue12930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12585] distutils dereferences symlinks for zip but not for bztar/gztar target
É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 would be a runtime hint like I’m not a fan of the idea. You have to keep warnings few if you want people to heed them. For distutils2 however, compatibility concerns do not apply yet, so we’re free to fix and document symlink handling. Thinking again about that, 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 that zip cannot contain links. -- components: +Documentation keywords: +easy versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12344] Add **kwargs to get_reinitialized_command
É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 http://bugs.python.org/issue12344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue793069] Add --remove-source option
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12395] packaging remove fails under Windows
É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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12395 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12585] distutils dereferences symlinks for zip but not for bztar/gztar target
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 that zip cannot contain links. In my mind, that is no excuse for inconsistent behaviour on part of the wrapper. If the *user* (i.e. package creator) had any choice of storing symlinks as is or the file linked, I would agree; but there is no option, no parameter, in fact not even a hint at the behaviour. On the contrary, the *wrapper* (i.e. distutils) does have a choice of derefering symlinks in a tar file or not. So, from my point of view: surprises == bad, options/parameters == good, transparent consitency == best. P.S. Explicit is better than implicit may also apply here. ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12393] Packaging should provide support for extensible categories
É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. -- assignee: tarek - eric.araujo versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12344] Add **kwargs to get_reinitialized_command
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 rep...@bugs.python.org http://bugs.python.org/issue12344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13010] devguide doc: ./python.exe on OS X
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: docs@python components: Documentation messages: 144298 nosy: docs@python, ssc priority: normal severity: normal status: open title: devguide doc: ./python.exe on OS X ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13010] devguide doc: ./python.exe on OS X
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 http://bugs.python.org/issue13010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13010] devguide doc: ./python.exe on OS X
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 unusual suffix would be great, but an added (sic!) would already indicate this is not an erroneous mixup of OS names (as i initially assumed). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13010] devguide doc: ./python.exe on OS X
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13010] devguide doc: ./python.exe on OS X
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. guest) harddrive formatted with a case-sensitive file system such as ext4, the built executable is called 'python' as one would expect. 2. in my setup mounting the source code folder from a cifs/samba share provided by the host, the executable is called 'python.exe': samba is not case sensitive. once you know about case sensitivity and python / Python, the sentence in the docs makes absolute sense. before that, it looks like someone has mixed up os names. suggestion for a rephrase: instead of Once CPython is done building you will then have a working build that can be run in-place; ./python on most machines (and what is used in all examples), ./python.exe on OS X (when on a case-insensitive filesystem, which is the default). Once CPython is done building you will then have a working build that can be run in-place; ./python on most machines (and what is used in all examples), ./python.exe wherever a case-insensitive filesystem is used (e.g. the OS X default setting). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12944] setup.py upload to pypi needs to work with specified files
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 tracker rep...@bugs.python.org http://bugs.python.org/issue12944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12989] Consistently handle path separator in Py_GetPath on Windows
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, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12989 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12989] Consistently handle path separator in Py_GetPath on Windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12973] int_pow() implementation is incorrect
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 Dickinson in branch 'default': Merge issue #12973 list_repeat fix. http://hg.python.org/cpython/rev/2dbd5870de0b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12973 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug
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 won't bore you with their errors. I'm going to seek clarification on some matters here. --tom -- title: Python lib re cannot handle Unicode properly due to narrow/wide bug - Python lib re cannot handle Unicode properly due to narrow/wide bug ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12729 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12973] int_pow() implementation is incorrect
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 rep...@bugs.python.org http://bugs.python.org/issue12973 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12981] rewrite multiprocessing (senfd|recvfd) in Python
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 the extra one going unnoticed - it should use CMSG_LEN() instead (the existing C implementation has the same problem, I see). I just checked, and the C version uses CMSG_SPACE() as the buffer size, but passes CMSG_LEN() to cmsg-cmsg_len and msg.msg_controllen. Or am I missing something? Ah, no, you're right - that's fine. Sorry for the false alarm. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12981 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12976] add support for MirBSD platform
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 Python versions contain the support out of the box. The only downside is having to add a few lines to configure and selectmodule.c ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12976 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13004] pprint: add option to truncate sequences
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12989] Consistently handle path separator in Py_GetPath on Windows
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 http://bugs.python.org/issue12989 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12930] reindent.py inserts spaces in multiline literals
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12930] reindent.py inserts spaces in multiline literals
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: http://bugs.python.org/file23194/caioromao-fix-12930-v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12930] reindent.py inserts spaces in multiline literals
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 file; the result after applying the patch in this thread -- Added file: http://bugs.python.org/file23195/bug12930-testfiles.tgz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13011] Frozen programs require the original build directory in order to run.
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 following steps reproduce the problem: 1) Build a copy of python: $ tar -xf Python-2.7.2.tar.bz2 $ cd Python-2.7.2 $ ./configure --prefix=`pwd`/install $ make $ make install 2) In another directory, build a frozen program: $ echo 'print Hello World' hello.py $ ~/src/Python-2.7.2/python ~/src/Python-2.7.2/Tools/freeze/freeze.py hello.py $ make $ ./hello Hello World Copy the binary to another machine: $ $ ./hello Traceback (most recent call last): File /home/malcolmp/src/Python-2.7.2/Lib/site.py, line 563, in module File /home/malcolmp/src/Python-2.7.2/Lib/site.py, line 545, in main File /home/malcolmp/src/Python-2.7.2/Lib/site.py, line 278, in addusersitepackages File /home/malcolmp/src/Python-2.7.2/Lib/site.py, line 253, in getusersitepackages File /home/malcolmp/src/Python-2.7.2/Lib/site.py, line 243, in getuserbase File /home/malcolmp/src/Python-2.7.2/Lib/sysconfig.py, line 520, in get_config_var File /home/malcolmp/src/Python-2.7.2/Lib/sysconfig.py, line 419, in get_config_vars File /home/malcolmp/src/Python-2.7.2/Lib/sysconfig.py, line 287, in _init_posix IOError: invalid Python installation: unable to open /home/malcolmp/src/Python-2.7.2/install/lib/python2.7/config/Makefile (No such file or directory) -- components: Demos and Tools messages: 144315 nosy: malcolmp priority: normal severity: normal status: open title: Frozen programs require the original build directory in order to run. type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13004] pprint: add option to truncate sequences
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 rep...@bugs.python.org http://bugs.python.org/issue13004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12943] tokenize: add python -m tokenize support back
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 rep...@bugs.python.org http://bugs.python.org/issue12943 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7434] general pprint rewrite
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12976] add support for MirBSD platform
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 policy, MirBSD is just too small to be officially supported. Technically, I recommend to maintain the patch in a Mercurial clone, perhaps hosted on bitbucket. Then you do a merge every time python.org makes a release, and everybody can fetch the code base at any point easily. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12976 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13004] pprint: add option to truncate sequences
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 tracker rep...@bugs.python.org http://bugs.python.org/issue13004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com