[issue11899] TarFile.gettarinfo modifies self.inodes

2011-04-22 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Good point. Do you happen to have a working implementation already? -- assignee: - lars.gustaebel priority: normal - low versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-22 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11879 ___

[issue9228] Make changes in the PATH and PATHEXT on installation

2011-04-22 Thread Jonathan Hartley
Changes by Jonathan Hartley tart...@tartley.com: -- nosy: +jonathan.hartley ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9228 ___ ___

[issue11907] SysLogHandler can't send long messages

2011-04-22 Thread Lukáš Lalinský
New submission from Lukáš Lalinský lalin...@gmail.com: It seems that logging.handlers.SysLogHandler can't handle messages that can't be passed atomically via the socket. I'm not sure what is the right behavior (the syslog() function truncates the message), but I think it shouldn't propagate

[issue2292] Missing *-unpacking generalizations

2011-04-22 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___ Python-bugs-list mailing

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2011-04-22 Thread Greg Słodkowicz
Greg Słodkowicz jerg...@gmail.com added the comment: Thanks, Nick. Before your last comment, I haven't looked much into Pdb, instead focusing on profile.py and trace.py because they looked like simpler cases. I think the approach with CodeRunner objects would work just fine for profile and

[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2011-04-22 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Commented on the patch. I'll be happy to land this for Evan. -- assignee: - barry nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11513

[issue11885] argparse docs needs fixing

2011-04-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file21750/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11885 ___

[issue11885] argparse docs needs fixing

2011-04-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: No problem, it’s Ezio who did the work. -- versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11885 ___

[issue1322] platform.dist() has unpredictable result under Linux

2011-04-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The hard part was supporting distro-specific release files; I think that now most of them provide the lsb_release info. If it proves more complicated than that, then let’s deprecate the function. --

[issue11881] Add list.get

2011-04-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11881 ___ ___ Python-bugs-list

[issue11862] urlparse.ParseResult to have meaningful __str__

2011-04-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Why couldn’t ParseResult call urlunparse to implement a useful __str__? -- components: +Library (Lib) -Extension Modules nosy: +eric.araujo versions: +Python 3.3 ___ Python tracker

[issue11869] Include information about the bug tracker Rietveld code review tool

2011-04-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11869 ___ ___ Python-bugs-list

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-04-22 Thread Piotr Sikora
Piotr Sikora piotr.sik...@frickle.com added the comment: It's the same on OpenBSD (and I'm pretty sure it's true for other BSDs as well). locale.resetlocale() Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python2.6/locale.py, line 523, in resetlocale

[issue11873] test_regexp() of test_compileall failure on x86 OpenIndiana 3.x

2011-04-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: How do we debug this? Does someone have access to a similar box to see whether the pyc files do get created and where? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue11874] argparse assertion failure with brackets in metavars

2011-04-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +bethard, eric.araujo versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11874 ___

[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If you make the suggested change to your Python, do the tests still pass? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11879

[issue11884] Argparse calls ngettext but doesn't import it

2011-04-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I added the import and calls in 1827a8ac9b18, so this report is strange. What is your exact version and where did you get it? -- assignee: - eric.araujo nosy: +eric.araujo ___ Python tracker

[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11901 ___ ___ Python-bugs-list

[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11906 ___ ___ Python-bugs-list

[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-22 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: +1 -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11901 ___

[issue11908] Weird `slice.stop or sys.maxint`

2011-04-22 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: In the documentation for `itertools.islice` I see this line: it = iter(xrange(s.start or 0, s.stop or sys.maxint, s.step or 1)) Is it really okay to do `s.stop or sys.maxint`? I'm assuming this was targeting `None`, but what if `s.stop

[issue11908] Weird `slice.stop or sys.maxint`

2011-04-22 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11908 ___

[issue1322] platform.dist() has unpredictable result under Linux

2011-04-22 Thread Zooko O'Whielacronx
Zooko O'Whielacronx zo...@zooko.com added the comment: There seems to be some mistake, re #msg134219 and #msg134255. The current version of may patch *does* avoid the cost of a subprocess in the common case. I described this new strategy in #msg73744 and as far as I know it satisfies all of

[issue11909] Doctest sees directives in strings when it should only see them in comments

2011-04-22 Thread Devin Jeanpierre
New submission from Devin Jeanpierre jeanpierr...@gmail.com: From the doctest source: 'Option directives are comments starting with doctest:. Warning: this may give false positives for string-literals that contain the string #doctest:. Eliminating these false positives would require

[issue11909] Doctest sees directives in strings when it should only see them in comments

2011-04-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - patch review type: - feature request versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11909 ___

[issue11873] test_regexp() of test_compileall failure on x86 OpenIndiana 3.x

2011-04-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Given that it happens randomly I suspect a timing issue, but without having reviewed the code in question. I'm not sure when I'll have time to look at this. -- ___ Python tracker

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9319 ___ ___

[issue11885] argparse docs needs fixing

2011-04-22 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: I ment to say Ezio. Got confused. Thanks, Ezio! -- Added file: http://bugs.python.org/file21758/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11885

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-04-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: expose signalfd(2) and sigprocmask(2) in the signal module - expose signalfd(2) and pthread_sigmask in the signal module ___ Python tracker rep...@bugs.python.org

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-22 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset fa5e348889c2 by Victor Stinner in branch '3.2': Issue #9319: Fix a crash on parsing a Python source code without encoding http://hg.python.org/cpython/rev/fa5e348889c2 -- ___ Python

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fixed in 3.2 (fa5e348889c2) and 3.3 (7b8d625eb6e4). The bug is a regression introduced in Python 3.2, so Python 3.1 doesn't need to be fixed. -- status: open - closed ___ Python tracker

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-22 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 701069f9888c by Victor Stinner in branch '3.2': Issue #9319: Fix the unit test http://hg.python.org/cpython/rev/701069f9888c -- ___ Python tracker rep...@bugs.python.org

[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: If I put the same line I ran interactively in a file and run it from test import test_argparse as t; t.test_main() all tests pass. So it is specifically a problem from the interactive prompt. -- nosy: +michael.foord

[issue11619] On Windows, don't encode filenames in the import machinery

2011-04-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Another huge patch to support Unicode filenames: parser_unicode.patch Doc/c-api/exceptions.rst | 26 +++--- Include/ast.h|5 ++ Include/compile.h| 15 +++- Include/parsetok.h | 42

[issue11619] On Windows, don't encode filenames in the import machinery

2011-04-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file21743/compile_filename.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11619 ___

[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: That happens because argparse uses `os.basename(sys.argv[0])` (per default) as program name, but `sys.argv[0]` is usually a string of length 0 at interactive sessions. The tests use ``usage: {} format(program_name)`` (note that

[issue11860] reference 2.3 has text that runs past the page

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I presume you are talking about long boxed grammar or example lines that run horizontally past the right edge of the window, like id_start ::= all characters in general categories Lu, Ll, Lt, Lm, Lo, Nl, the underscore, and characters

[issue11860] reference 2.3 has text that runs past the page

2011-04-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Yes, the problem is with the PDF. See also #4173. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11860 ___

[issue4173] PDF documentation: long verbatim lines are cut off at right hand side

2011-04-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See also #11860. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4173 ___

[issue11889] 'enumerate' 'start' parameter documentation is confusing

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Note: 3.x correct gives the signature at enumerate(iterable, start) rather that enumerate(sequence, start). I agree that the current entry is a bit awkward. Perhaps the doc would be clearer with a reference to zipping. Removing the unneeded

[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thanks for the diagnosis. I am glad it is something simple. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11906 ___

[issue11860] reference 2.3 has text that runs past the page

2011-04-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Then this appears to be a duplicate. Closing -- resolution: - duplicate status: open - closed superseder: - PDF documentation: long verbatim lines are cut off at right hand side ___ Python tracker

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-04-22 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: When _heapq is missing, test_heapq still runs both the Py and the C tests instead of skipping the C ones. The attached patch skips the C tests when _heapq is missing. -- files: issue11910.diff keywords: patch messages: 134293

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-04-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Tests nosy: +brett.cannon stage: - patch review type: - behavior versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue11884] Argparse calls ngettext but doesn't import it

2011-04-22 Thread John O'Hagan
John O'Hagan resea...@johnohagan.com added the comment: It's argparse version 1.1 (1.1-1) from current Debian testing, Python 3.2 (r32:88445, Feb 20 2011, 18:43:30) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11884