[issue22401] argparse: 'resolve' conflict handler damages the actions of the parent parser

2014-09-17 Thread paul j3
paul j3 added the comment: 'sample3.py' contains a '_handle_conflict_parent' function. With the help of a change in '_add_container_actions' it determines whether a conflicting action occurs in multiple parsers (and argument_groups). If it does, it deletes it from the correct group, without

[issue22377] %Z in strptime doesn't match EST and others

2014-09-17 Thread R. David Murray
R. David Murray added the comment: I don't think we are going to support a timezone list like that without PEP 431. You should attach your patch to a new issue. When I said this should the doc issue, that is because only a doc fix is acceptable for 3.4. Adding more timezones to recognize

[issue22420] Use print(file=sys.stderr) instead of sys.stderr.write() in IDLE

2014-09-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Reviewed the patch. Looks good to go. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22420 ___

[issue22428] KeyboardInterrupt inside a coroutine causes AttributeError

2014-09-17 Thread Jack O'Connor
New submission from Jack O'Connor: The following test script prints a KeyboardInterrupt traceback (expected), but also an AttributeError traceback (unexpected): import asyncio @asyncio.coroutine def main(): raise KeyboardInterrupt asyncio.get_event_loop().run_until_complete(main())

[issue22419] wsgiref request length

2014-09-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch looks good. Yeah, wsgiref server will see the benefiting of rejecting long url with 414. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22419

[issue22419] wsgiref request length

2014-09-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a4d960fc801 by Senthil Kumaran in branch '2.7': Issue #22419: Limit the length of incoming HTTP request in wsgiref server to 65536 bytes. https://hg.python.org/cpython/rev/7a4d960fc801 New changeset a4e0aee1a9b5 by Senthil Kumaran in branch

[issue22419] wsgiref request length

2014-09-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks, fixed in all versions applicable for security release. -- assignee: - orsenthil resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue22419] wsgiref request length

2014-09-17 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22419 ___

[issue17381] IGNORECASE breaks unicode literal range matching

2014-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This patch has a disadvantage - it slows down case-insensitive compiling of some very wide ranges, e.g. compile(r[\x00-\U0010]+, re.I) (this is worst case). In most cases this is not important, because such wide ranges are rare enough and compiled

[issue22427] TemporaryDirectory attempts to clean up twice

2014-09-17 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22427 ___ ___

[issue22417] PEP 476: verify HTTPS certificates by default

2014-09-17 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22417 ___ ___ Python-bugs-list

[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-17 Thread Frank Thommen
Frank Thommen added the comment: strace gives me the error: unlink(/mnt/tmpu817xz) = -1 EIO (Input/output error) But after escalating the issue to our server vendor it turned out that the problem lies in the filesystem option nbmand. If this option is set to on - which it seems to be by

[issue22427] TemporaryDirectory attempts to clean up twice

2014-09-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22427 ___ ___ Python-bugs-list

[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-17 Thread STINNER Victor
STINNER Victor added the comment: unlink(/mnt/tmpu817xz) = -1 EIO (Input/output error) If a system call can fail with EIO, I guess that not only Python is affected, by *any* program. So I don't see why Python should have a special case for broken filesystems. I close the issue as not a

[issue22428] asyncio: KeyboardInterrupt inside a coroutine causes AttributeError

2014-09-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: KeyboardInterrupt inside a coroutine causes AttributeError - asyncio: KeyboardInterrupt inside a coroutine causes AttributeError ___ Python tracker rep...@bugs.python.org

[issue22385] Define a binary output formatting mini-language for *.hex()

2014-09-17 Thread Nick Coghlan
Nick Coghlan added the comment: Retitled the issue and made it depend on issue 9951. I now think it's better to tackle this more like strftime and have a method that accepts of particular custom formatting mini-language (in this case, the new hex() methods proposed in issue 9951), and then

[issue22385] Define a binary output formatting mini-language for *.hex()

2014-09-17 Thread Nick Coghlan
Nick Coghlan added the comment: python-ideas post with a sketch of a possible mini-language: https://mail.python.org/pipermail/python-ideas/2014-September/029352.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22385

[issue22429] asyncio: pending call to loop.stop() if a coroutine raises a BaseException

2014-09-17 Thread STINNER Victor
New submission from STINNER Victor: Attached script stops immediatly whereas I would expect that the second call to run_forever() keeps running. If you execute the script, you will see: deque([Handle _raise_stop_error() at /home/haypo/prog/python/default/Lib/asyncio/base_events.py:94]) The

[issue22428] asyncio: KeyboardInterrupt inside a coroutine causes AttributeError

2014-09-17 Thread STINNER Victor
STINNER Victor added the comment: I see different issues in your example: * If the coroutine raises an exception which doesn't inherit from Exception (but inherits from BaseException), run_until_complete() doesn't consume the exception from the temporary task object =

[issue22427] TemporaryDirectory attempts to clean up twice

2014-09-17 Thread STINNER Victor
STINNER Victor added the comment: On Python 3.5 compiled in debug mode (or probably with python -Wd when compiled in release mode), I got this warning: /home/haypo/prog/python/default/Lib/tempfile.py:708: ResourceWarning: Implicitly cleaning up TemporaryDirectory '/tmp/tmpcr8u3m8v'

[issue22430] Build failure if configure flags --prefix or --exec-prefix is set

2014-09-17 Thread diff 812
New submission from diff 812: only ./configure --prefix=/usr is running -- components: Build files: configure.log messages: 226997 nosy: diff.812 priority: normal severity: normal status: open title: Build failure if configure flags --prefix or --exec-prefix is set versions: Python 2.7

[issue22430] Build failure if configure flags --prefix or --exec-prefix is set

2014-09-17 Thread diff 812
diff 812 added the comment: make command -- Added file: http://bugs.python.org/file36639/make.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22430 ___

[issue22430] Build failure if configure flags --prefix or --exec-prefix is set

2014-09-17 Thread diff 812
diff 812 added the comment: make without --prefix key -- Added file: http://bugs.python.org/file36640/make_ok.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22430 ___

[issue22431] Change format of test runner output

2014-09-17 Thread Philipp Metzler
New submission from Philipp Metzler: Can I change the test runner output format to main.tests.tests.TimeSlotTestCase.test_creation ... ERROR instead of test_creation (main.tests.tests.TimeSlotTestCase) ... ERROR so that I can easily just copypaste that line and run the test again without having

[issue22431] Change format of test runner output

2014-09-17 Thread R. David Murray
R. David Murray added the comment: I remember this feature being requested before (I vote +1 myself :), and I believe I recall a conversation involving Michael Foord where he approved it in principle, but I can't find an open issue for it. As a new feature it can only go into 3.5, and would

[issue22432] function crypt not working on OSX

2014-09-17 Thread Mark Wieczorek
New submission from Mark Wieczorek: Hi, I just wanted to let you know of a bug that is related to the function crypt in osx (10.9.4). I have tried the default osx version of python (2.75), the brew version (2.7.8), and the macports version (2.7.7). In short, the command python -c 'import

[issue22432] function crypt not working on OSX

2014-09-17 Thread Geoffrey Spear
Geoffrey Spear added the comment: The same behavior exists in Python 3, however, I'm not sure it's a bug. The documentation says The characters in salt must be in the set [./a-zA-Z0-9]. Presumably the behavior when there is a $ in the salt is undefined by Python, and different on different

[issue22432] function crypt not working on OSX

2014-09-17 Thread Mark Wieczorek
Mark Wieczorek added the comment: It actually doesn't even matter what you use for salt. If you change salt, you get the same hash. That is bug #2 ! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22432

[issue22432] function crypt not working on OSX

2014-09-17 Thread Geoffrey Spear
Geoffrey Spear added the comment: This is actually the expected behavior of crypt(3) on OS X. It doesn't support the $id$ modular format, and if the salt does not begin with an underscore only the first 2 bytes are used (presumably in your bug #2 you're changing parts of the salt beyond the

[issue22432] function crypt not working on OSX

2014-09-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22432

[issue22427] TemporaryDirectory attempts to clean up twice

2014-09-17 Thread Jack O'Connor
Jack O'Connor added the comment: My example script is definitely a corner case, but where this actually came up for me was in asyncio. Using a TemporaryDirectory inside a coroutine creates a similar situation. -- ___ Python tracker

[issue22433] Argparse considers unknown optional arguments with spaces as a known positional argument

2014-09-17 Thread Денис Кореневский
New submission from Денис Кореневский: Argparse version 1.1 consider ANY unknown argument string containig ' ' (space character) as positional argument. As a result it can use such unknown optional argument as a value of known positional argument. Demonstration code: import argparse parser =

[issue22434] Use named constants internally in the re module

2014-09-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Regular expression parser parses a pattern to a tree, marking nodes by string identifiers. Regular expression compiler converts this three into plain list of integers. Node's identifiers are transformed to sequential integers. Resulting list is not human

[issue22433] Argparse considers unknown optional arguments with spaces as a known positional argument

2014-09-17 Thread Денис Кореневский
Денис Кореневский added the comment: I've signed 'Contributor's Agreement'. Bug demonstration code listed in issue description is in file attached to comment. It can be run with following command: python argparse_bug_example.py -- Added file:

[issue22434] Use named constants internally in the re module

2014-09-17 Thread Guido van Rossum
Guido van Rossum added the comment: Love it! -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22434 ___ ___ Python-bugs-list

[issue22430] Build failure if configure flags --prefix or --exec-prefix is set

2014-09-17 Thread Ned Deily
Ned Deily added the comment: It is difficult to tell what the problem you encountered here is without more information. Python is supported on many different platforms and regularly built with --prefix being set. To investigate further, you would need to indicate exactly which version of

[issue22427] TemporaryDirectory attempts to clean up twice

2014-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which may fix this issue. -- keywords: +patch nosy: +pitrou, serhiy.storchaka stage: - patch review versions: +Python 3.5 Added file: http://bugs.python.org/file36644/tempfile_exit_on_shutdown.patch

[issue22427] TemporaryDirectory attempts to clean up twice

2014-09-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is alternative patch. It simplifies TemporaryDirectory instead of complicate it. -- Added file: http://bugs.python.org/file36645/tempfile_exit_on_shutdown2.patch ___ Python tracker rep...@bugs.python.org

[issue21077] Turtle Circle Speed 0

2014-09-17 Thread ingrid
ingrid added the comment: This seems to be caused by a bug in TurtleScreen.update/turtle._drawturtle. When the speed is set to zero, the tracer method is used to regulate drawing circles, and when called with a positive integer, tracer calls update. Update iterates over the list of existing

[issue22390] test.regrtest should complain if a test doesn't remove temporary files

2014-09-17 Thread STINNER Victor
STINNER Victor added the comment: fix_tests.patch: Fix the 7 tests which create files without removing them. 4 tests (test_imp, test_pdb, test_source_encoding and test_support) create a __pycache__ directory. Maybe this directory should be ignored by regrtest? -- Added file:

[issue22043] Use a monotonic clock to compute timeouts

2014-09-17 Thread STINNER Victor
STINNER Victor added the comment: Buildbots are happy, I close the issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22043 ___

[issue22431] Change format of test runner output

2014-09-17 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22431 ___ ___ Python-bugs-list

[issue22435] socketserver.TCPSocket leaks socket to garbage collector if server_bind() fails

2014-09-17 Thread Martin Panter
New submission from Martin Panter: Bind method may easily fail on Unix if there is no permission to bind to a privileged port: try: TCPServer((, 80), ...) ... except Exception as err: err ... PermissionError(13, 'Permission denied') gc.collect() __main__:1: ResourceWarning: unclosed

[issue4180] warnings.simplefilter(always) does not make warnings always show up

2014-09-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8adb2c6e0803 by Antoine Pitrou in branch '3.4': Issue #4180: The warnings registries are now reset when the filters are modified. https://hg.python.org/cpython/rev/8adb2c6e0803 New changeset 4bc60eb68d3e by Antoine Pitrou in branch 'default':

[issue4180] warnings.simplefilter(always) does not make warnings always show up

2014-09-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, this is pushed to 3.x. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4180

[issue11471] If without else generates redundant jump

2014-09-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Pushed after applying Serhiy's suggestion. Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11471 ___

[issue11471] If without else generates redundant jump

2014-09-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0ca9d32aed4 by Antoine Pitrou in branch 'default': Closes #11471: avoid generating a JUMP_FORWARD instruction at the end of an if-block if there is no else-clause. https://hg.python.org/cpython/rev/c0ca9d32aed4 -- nosy: +python-dev

[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-09-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab369d809200 by Berker Peksag in branch 'default': Issue #21391: Use os.path.abspath in the shutil module. https://hg.python.org/cpython/rev/ab369d809200 -- nosy: +python-dev ___ Python tracker

[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-09-17 Thread Berker Peksag
Berker Peksag added the comment: Done. Thanks for the reviews! -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21391

[issue21706] Add base for enumerations (Functional API)

2014-09-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 713ee49ec3ba by Berker Peksag in branch 'default': Issue #21706: Add a versionchanged directive to the functional API docs. https://hg.python.org/cpython/rev/713ee49ec3ba -- ___ Python tracker

[issue14824] reprlib documentation references string module

2014-09-17 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - patch review versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14824 ___

[issue14824] reprlib documentation references string module

2014-09-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9968782c9ba by Berker Peksag in branch '3.4': Issue #14824: Update Repr.repr_TYPE documentation to use correct name mangling implementation. https://hg.python.org/cpython/rev/e9968782c9ba New changeset a0372781eafb by Berker Peksag in branch

[issue14824] reprlib documentation references string module

2014-09-17 Thread Berker Peksag
Berker Peksag added the comment: I don't know why we would ever have a space in a typename, ever (and if someone does awful hacks to get to that state, he should probably also do awful hacks to make reprlib work properly). That part of the code has been added 22 years ago:

[issue16827] Remove the relatively advanced content from section 2 in tutorial

2014-09-17 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16827 ___ ___

[issue16827] Remove the relatively advanced content from section 2 in tutorial

2014-09-17 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16827 ___ ___

[issue16827] Remove the relatively advanced content from section 2 in tutorial

2014-09-17 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, James. Did you see my review comments on Rietveld? Please see at http://bugs.python.org/review/16827/#ps11699 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16827

[issue19690] test_logging test_race failed with PermissionError

2014-09-17 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - needs patch type: - behavior versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19690 ___

[issue22399] Doc: missing anchor for dict in library/functions.html

2014-09-17 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22399 ___ ___

[issue21397] tempfile.py: Fix grammar in docstring, comment typos

2014-09-17 Thread Berker Peksag
Berker Peksag added the comment: The latest patch LGTM. -- nosy: +berker.peksag stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21397 ___

[issue21049] Warning at interpreter exit triggers flood of “ImportWarning: sys.meta_path is empty”

2014-09-17 Thread Martin Panter
Martin Panter added the comment: My original demonstration was distilled from a real world case. I get this issue with other real world cases too, so I am expanding the title to reflect what I think is going on. This problem seems to be caused by a ResourceWarning triggered from a garbage

[issue22399] Doc: missing anchor for dict in library/functions.html

2014-09-17 Thread Georg Brandl
Georg Brandl added the comment: The anchor for dict is on the standard types page: https://docs.python.org/2/library/stdtypes.html#dict You'll have to use :class: not :func: to get it linked. -- resolution: - works for me status: open - closed ___