[issue14233] argparse: append action fails to override default values

2012-03-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I agree with Eric. I've run in to this error, and immediatly figured out what I'd done wrong based on the existing error message. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: To answer Glenn's procedural question: no this is not a bug whose fix can be backported. API changes are not allowed in maintenance releases. Doc improvements can be backported, though, so I'm leaving versios alone (alternatively

[issue14226] Expose dict_proxy type from descrobject.c

2012-03-09 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14226 ___ ___ Python-bugs-list

[issue13785] Make concurrent.futures.Future state public

2012-03-09 Thread Juan Javier
Juan Javier jjdomingu...@gmail.com added the comment: I'm writting an application where users can submit long running jobs and I want to disply a list of those jobs and the state of each one. My idea is to use an executor and use the futures to display information about the jobs: not started,

[issue14209] pkgutil.iter_zipimport_modules ignores the prefix parameter for packages

2012-03-09 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14209 ___ ___ Python-bugs-list

[issue1469629] __dict__ = self in subclass of dict causes a memory leak

2012-03-09 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1469629 ___ ___

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Unmodified CPython (without the patch) already passes the new test in the patch. The unmodified code already raises a Runtime error; a recursion limit exceeded error! -- ___ Python tracker

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Arkadiusz Miskiewicz Arkadiusz Miskiewicz
New submission from Arkadiusz Miskiewicz Arkadiusz Miskiewicz ar...@maven.pl: I'm trying to run python from UID which doesn't have entry in passwd database. This fails with: Traceback (most recent call last): File /usr/share/python2.7/site.py, line 567, in

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: This looks similar to a sporadic failure on the debian bigmem buildbot: http://www.python.org/dev/buildbot/all/builders/AMD64%20debian%20bigmem%203.x/builds/168/steps/test/logs/stdio ERROR: test_expanduser

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +benjamin.peterson, georg.brandl priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14234 ___

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I hope this can be integrated during the PyCon sprints? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14234 ___

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I agree -- there should be a guard here that just doesn't add user site directories if the lookup fails. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue14116] Lock.__enter__() method returns True instead of self

2012-03-09 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14116 ___ ___

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Unmodified CPython (without the patch) already passes the new test in the patch. You should try Lib/test/crashers/nasty_eq_vs_dict.py, not my test. -- ___ Python tracker

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I agree. It should not be too hard to add complete_break() and other similar methods that do this to Pdb. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

2012-03-09 Thread Mark Shannon
New submission from Mark Shannon m...@hotpy.org: I get the following compiler warning (rev 2a142141e5fd) Its not strictly an error, but an unitialised variable in such an important function is dangerous. Objects/object.c: In function ‘_PyObject_GenericSetAttrWithDict’: Objects/object.c:1144:

[issue13903] New shared-keys dictionary implementation

2012-03-09 Thread Mark Shannon
Changes by Mark Shannon m...@hotpy.org: Added file: http://bugs.python.org/file24766/257e16e71654.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Here's a patch for 3.3, adding completion to most commands (either completes locations, breakpoint numbers or expressions). Please test! -- assignee: - georg.brandl keywords: +patch Added file:

[issue12568] Add functions to get the width in columns of a character

2012-03-09 Thread Nicholas Cole
Nicholas Cole nicholas.c...@gmail.com added the comment: Could we have an update on the status of this? I ask because if 3.3 is going to (finally) fix unicode for curses, it would be really nice if it were possible to calculate the width of what's being displayed! It looks as if there was

[issue14178] _elementtree problem deleting slices with steps != +1

2012-03-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1a721b9a4039 by Eli Bendersky in branch 'default': Issue #14178: Problem deleting slices with steps != +1 in the _elementtree module. http://hg.python.org/cpython/rev/1a721b9a4039 -- nosy: +python-dev

[issue14178] _elementtree problem deleting slices with steps != +1

2012-03-09 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14178 ___

[issue14240] lstrip problem

2012-03-09 Thread Thomas Turner
New submission from Thomas Turner ttur...@joinerysoft.com: Problem with lstrip s = 'msgid supplier code' s.lstrip('msgid ') 'upplier code' It should come back with supplier code To get round the bug I did s.lstrip('msgid ').lstrip('') 'supplier code' -- components: None

[issue14240] lstrip problem

2012-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is expected behavior: http://docs.python.org/library/stdtypes.html#str.lstrip The chars argument is not a prefix; rather, all combinations of its values are stripped -- nosy: +amaury.forgeotdarc resolution: - invalid

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-03-09 Thread Mark Shannon
New submission from Mark Shannon m...@hotpy.org: io.UnsupportedOperation.__new__(io.UnsupportedOperation) Traceback (most recent call last): File stdin, line 1, in module TypeError: ValueError.__new__(UnsupportedOperation) is not safe, use OSError.__new__() Looking at the mro of

[issue14231] Fix or drop Lib/test/crashers/borrowed_ref_1.py

2012-03-09 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: ba6376dff6c4 changed dict_subscript(): _PyType_Lookup() is replaced by _PyObject_LookupSpecial(). 7b4b921f3335 fixed a reference introduced in this change. _PyObject_Lookup() returns a borrowed reference, whereas

[issue14231] Fix or drop Lib/test/crashers/borrowed_ref_1.py

2012-03-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 850d7f6af1b0 by Victor Stinner in branch 'default': Issue #14231: Lib/test/crashers/borrowed_ref_1.py was fixed by ba6376dff6c4. http://hg.python.org/cpython/rev/850d7f6af1b0 -- nosy: +python-dev

[issue14231] Fix or drop Lib/test/crashers/borrowed_ref_1.py

2012-03-09 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14231 ___

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a428f85de29c by Victor Stinner in branch 'default': Issue #14205: Document the dict lookup change in What's New in Python 3.3 http://hg.python.org/cpython/rev/a428f85de29c --

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Guido Given all this I think we should keep it as you have committed Guido and add it to the docs and whatsnew. I updated What's New in Python 3.3 document. I also wrote an email to python-dev to notify all developers of this change.

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@gmail.com added the comment: Guido Given all this I think we should keep it as you have committed Guido and add it to the docs and whatsnew. I updated What's New in Python 3.3 document. I

[issue14218] include rendered output in addition to markup

2012-03-09 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: My opinion is that in general you should worry about the semantic of the role/directive you are using, rather than its aspect while rendered. Some entries (especially some directives) might benefit from a rendered example, but I don't

[issue14228] SIGINT (Ctrl-C) not caught at startup

2012-03-09 Thread telmich
telmich nico-bugs.python@schottelius.org added the comment: The problem is *NOT* in the parent: The problem is in the *CHILD* that is being called from the shell that is throwing a traceback, which I cannot prevent in the python code. Please run the script yourself and try to get around

[issue14228] SIGINT (Ctrl-C) not caught at startup

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The problem is *NOT* in the parent: The problem is in the *CHILD* that is being called from the shell that is throwing a traceback, which I cannot prevent in the python code. Python does not (at least, should not) run differently as a child or

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-03-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14241 ___ ___ Python-bugs-list

[issue12568] Add functions to get the width in columns of a character

2012-03-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Nicholas: I consider this issue fixed. There already *is* any API to compute the width of a character. Closing this as works for me. -- resolution: - works for me status: open - closed ___

[issue14228] SIGINT (Ctrl-C) not caught at startup

2012-03-09 Thread telmich
telmich nico-bugs.python@schottelius.org added the comment: You are right, there is no different behaviour as parent or child in general. I used this example python = shell = python, because it is actually being used like this in cdist (first link in the first post). The problem arises

[issue14231] Fix or drop Lib/test/crashers/borrowed_ref_1.py

2012-03-09 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: I will attempt a last time to mention that the docstrings in borrowed_ref_*.py used to say they were *examples*. That means: (1) find any internal or external C function that returns a borrowed reference; (2) find all callers and write

[issue14232] obmalloc: mmap() returns MAP_FAILED on error, not 0

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ha, good catch. Indeed, under Linux MMAP_FAILED seems to be ((void *) -1). -- stage: - commit review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14232

[issue14218] include rendered output in addition to markup

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: Ezio Melotti ezio.melo...@gmail.com added the comment: Another idea that we were discussing on IRC (and IIRC on another issue that I can't find anymore), was to add at the top a table like:

[issue14218] include rendered output in addition to markup

2012-03-09 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I also agree. I'm just thinking someone who reads that doc should be able to see the output without building anything. Indeed I wasn't thinking about this use case, but IME people learn most of they know about rst on the field (i.e. by

[issue14210] add filename completion to pdb

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: Thanks for the work. I see that completion now works for user-defined variables, but: * completing with 'b' doesn't work at all * completing with 'break' only completes the first directory that gets the TAB key * also, 'break' doesn't

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I see. Would an option to disable the default SIGINT handlers (and let the OS kill the process) be an acceptable solution to your use case? Keep in mind that letting the OS kill the process will bypass any destructors at the Python level,

[issue14229] On KeyboardInterrupt, the exit code should mirror the signal number

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Another problem with my suggestion is that C exit() ANDs the status with 255 before transmitting it to the parent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14229

[issue14229] On KeyboardInterrupt, the exit code should mirror the signal number

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (faulthandler works around that problem by restoring the previous signal handler and calling raise(), apparently) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14229

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy nosy: +eric.araujo versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14238 ___

[issue13903] New shared-keys dictionary implementation

2012-03-09 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: As of Feb 28, 2012, the PEP mentions an additional optimization of storing the values in an array indexed by (effectively) key insertion order, rather than key position. (Alternative Implementation) It states that this would reduce memory

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I see that completion now works for user-defined variables, but: * completing with 'b' doesn't work at all Right, that needs to be added for every shortcut. * completing with 'break' only completes the first directory that gets the TAB key

[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

2012-03-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14239 ___ ___ Python-bugs-list

[issue13903] New shared-keys dictionary implementation

2012-03-09 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: On Fri, Mar 9, 2012 at 12:13 PM, Jim Jewett So to get beneath 2/3 without lots of reallocation probably requires knowing when the key set is likely to be complete, and that is indeed more complex than the current changes.  (That said, you

[issue14210] add filename completion to pdb

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: Works much better, but there are still some issues: * using relative path completes, but I get something like '../prog.py' not found from sys.path * using ~/ to try to complete the HOME directory doesn't work... it completes the root

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: * using relative path completes, but I get something like '../prog.py' not found from sys.path That has nothing to do with the completion. * using ~/ to try to complete the HOME directory doesn't work... it completes the root directory

[issue14236] In help(re) are insufficient details

2012-03-09 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14236 ___ ___

[issue14210] add filename completion to pdb

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: Georg Brandl ge...@python.org added the comment: * using relative path completes, but I get something like '../prog.py' not found from sys.path That has nothing to do with the completion. If I give it an absolute path it works,

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: * using relative path completes, but I get something like '../prog.py' not found from sys.path That has nothing to do with the completion. If I give it an absolute path it works, hence the complaint. But that has to do with how relative

[issue14237] Special sequences \A and \Z don't work in character set []

2012-03-09 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Within a character set \A and \Z should behave like, say, \C; in other words, they should be the literals A and Z. -- ___ Python tracker rep...@bugs.python.org

[issue14210] add filename completion to pdb

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: But that has to do with how relative paths are handled, not with how they are entered: they are taken relative to sys.path[0]. I don't know why, and if that is the useful thing to do, but it's for another issue. Perhaps refuse to

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Nope, don't think so. They are accepted and handled (albeit strangely) after all. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14210 ___

[issue211481] os.stat() doesn't return st_rdev

2012-03-09 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: Okay, it returns that field, but still not print one in repr(). Please fix. -- nosy: +mmarkk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue211481

[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

2012-03-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in differently in 46e600fa8d05 Thanks anyway. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14239

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Since this has been approved upstream and the Python change is minimal, I think this can just be applied. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14234

[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

2012-03-09 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: So the risk is that descr may be given garbage memory that just happens to look like an object with 1 reference, so that it really does a decref and tries to re-deallocate whatever was there before. I would rather see the change at the top of

[issue211481] os.stat() doesn't return st_rdev

2012-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Марк, issue11698 already track this. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue211481 ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +1. Also, the repr() should show the float values of st_mtime and friends, rather than truncated integers. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Note sure I understand: XML_SetHashSalt() takes a parser argument, but the hash secret is global? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14234

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: No, the salt is stored on the parser. See the line: +#define hash_secret_salt (parser-m_hash_secret_salt) Yes, expat code is confusing. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue12151] test_logging fails sometimes

2012-03-09 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: After an increase to a delay in the test(1.01 - 1.1 seconds) the problem seems to have disappeared. So closing for now, since this error appears not to have occurred over a period of a few days. -- resolution: - fixed status:

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: One of our buildbots seems to have recurring issues with the timeout issues. I don't know if the machine is very loaded: == FAIL: test_wait_integer

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 70fbb02d588c by Victor Stinner in branch 'default': Issue #14205: Fix test_dict.test_mutating_lookup() http://hg.python.org/cpython/rev/70fbb02d588c -- ___ Python tracker

[issue14214] test_concurrent_futures hangs

2012-03-09 Thread Miki Tebeka
Miki Tebeka miki.teb...@gmail.com added the comment: Of course now the tests pass and I can't reproduce it. Sorry. You can close the issue or wait to see if someone else has the same problem. -- ___ Python tracker rep...@bugs.python.org

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Two things I realized yesterday that need to be implemented (and some double-checking and/or opinion would be nice) while I wait for a full patch review. One is ``python -v`` support. sys.flags has a verbose attribute that can be used to

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-03-09 Thread Dave Burton
Dave Burton ncdave4l...@gmail.com added the comment: This is a patch for the os.path.realpath() bug under Windows, http://bugs.python.org/issue9949 os.path.realpath on Windows does not follow symbolic links ntpath.diff fixes the realpath() function to resolve symbolic links to their

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: One is ``python -v`` support. sys.flags has a verbose attribute that can be used to properly guard printing imported modules. It might be tricky, though, if sys.stderr is not set up properly during very early imports. Might or might not. You

[issue14232] obmalloc: mmap() returns MAP_FAILED on error, not 0

2012-03-09 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ba8f85e16dd9 by Victor Stinner in branch 'default': Close #14232: catch mmap() failure in new_arena() of obmalloc http://hg.python.org/cpython/rev/ba8f85e16dd9 -- nosy: +python-dev resolution: - fixed

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-09 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Sad. That means all the documentation of workarounds needs to be written, even figured out in the first place. Steven's code, while being a nice implementation when proper arguments are provided, produces inappropriate errors, because

[issue14237] Special sequences \A and \Z don't work in character set []

2012-03-09 Thread py.user
py.user port...@yandex.ru added the comment: Martin v. Löwis wrote: What behavior would you expect? I expected similar work re.search(r'[\s]a', ' a').group() ' a' re.search(r'[\s]a', 'ba').group() Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'NoneType'

[issue14242] Make subprocess.Popen aware of $SHELL

2012-03-09 Thread Dan Colish
New submission from Dan Colish dcol...@gmail.com: The hardcoding of /bin/sh in the Popen _execute_child method can be a point of frustration when so many users are used to their chosen environment shell. The module can easily support the re-use of the defined $SHELL variable. I've attached a

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-03-09 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14241 ___

[issue14218] include rendered output in addition to markup

2012-03-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: It is not unusual and perhaps common for markup documentation to give rendered output for example input. This is similar to what we do in the tutorial and elsewhere with interactive examples: 2 + 2 # input code 4 # output of running

[issue14237] Special sequences \A and \Z don't work in character set []

2012-03-09 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: \s matches a character, whereas \A and \Z don't. Within a character set \s makes sense, but \A and \Z don't, so they should be treated as literals. -- ___ Python tracker

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-09 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Of course, if a real solution can only be shipped in 3.3, it may want to use a different API than parse_args to avoid the parameter, parse_intermixed_args, perhaps. But my t18.py uses the name parse_args, but just always does the

[issue14243] NamedTemporaryFile usability request

2012-03-09 Thread Dave Abrahams
New submission from Dave Abrahams d...@boostpro.com: NamedTemporaryFile is too hard to use portably when you need to open the file by name after writing it. To do that, you need to close the file first (on Windows), which means you have to pass delete=False, which in turn means that you get

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: there should be a guard here that just doesn't add user site directories if the lookup fails. Agreed too. site is easy to fix (I can do it or review a patch), but we also need to fix sysconfig; I think the right thing to do would be not to

[issue14187] add annotation entry to Glossary

2012-03-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think too that function annotations don’t need to be in the glossary; documenting them in the language reference section that talks about defining functions should be enough. What do you think, Chris? -- nosy: +eric.araujo

[issue14186] Link to PEP 3107 in def part of Language Reference

2012-03-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sure. Don’t know if we should use a seealso section or just a regular link. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14186

[issue14219] start the Class tutorial in a more gentle manner

2012-03-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14219 ___ ___ Python-bugs-list

[issue14235] test_cmd.py does not correctly call reload()

2012-03-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report and patch. This begs the question: why does the current buggy code not cause a test failure? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue14236] re: Docstring for \s and \S don’t mention Unicode

2012-03-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Please open another report for your second bug. Thanks. -- nosy: +eric.araujo title: In help(re) are insufficient details - re: Docstring for \s and \S don’t mention Unicode versions: +Python 2.7, Python 3.3

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-03-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14241 ___ ___ Python-bugs-list

[issue14186] Link to PEP 3107 in def part of Language Reference

2012-03-09 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: My suggestion was a seealso to parallel those in the The with Statement and Class definitions sections of the same page. -- ___ Python tracker rep...@bugs.python.org

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2012-03-09 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: What is the status of this bug? It has been about two months since the last message. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13532

[issue14244] No information about behaviour with groups in pattern in the docstring for re.split

2012-03-09 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: help(re.split) split(pattern, string, maxsplit=0, flags=0) Split the source string by the occurrences of the pattern, returning a list containing the resulting substrings. No info is given about behaviour with groups in

[issue14236] re: Docstring for \s and \S don’t mention Unicode

2012-03-09 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Done so see issue14244 . -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14236 ___

[issue14244] No information about behaviour with groups in pattern in the docstring for re.split

2012-03-09 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Oops. The link in the last sentence doesn't work. It should be see msg155283 . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14244

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2012-03-09 Thread Tim Lesher
Tim Lesher tles...@gmail.com added the comment: Victor: would you object to ysj.ray's solution? I don't think it was an option when we last looked at this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8070

[issue14244] No information about behaviour with groups in pattern in the docstring for re.split

2012-03-09 Thread py.user
Changes by py.user port...@yandex.ru: -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett, py.user versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14244

[issue14243] NamedTemporaryFile usability request

2012-03-09 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14243 ___ ___ Python-bugs-list

[issue14169] compiler.compile fails on if statement in attached file

2012-03-09 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: If I understood correctly, that *is* the minimal case, which suggests some sort of size problem. That said, I could not duplicate on 2.6.2, nor with py_compile.compiler in 3.2.2; I am not currently sufficiently motivated to install another

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2012-03-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Many issues take a while, depending on volunteers time and choice of priority. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13532 ___

[issue14229] On KeyboardInterrupt, the exit code should mirror the signal number

2012-03-09 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14229 ___ ___

[issue14235] test_cmd.py does not correctly call reload()

2012-03-09 Thread Josh Watson
Josh Watson j...@joshwatson.com added the comment: That particular function only gets called by running `./python Lib/test/test_cmd.py -c`, and not through regrtest.py, so I suspect that's why it wasn't noticed before. I just happened to be exploring test files and ran into an unhandled

  1   2   >