[issue24134] assertRaises can behave differently

2015-05-09 Thread Tim Graham
Tim Graham added the comment: I noticed this is backwards incompatible for a small feature in Django. If you want to leave this feature in Python 2.7 and 3.4, it'll break things unless we push out a patch for Django; see https://github.com/django/django/pull/4637. -- nosy: +Tim.Graham

[issue24153] threading/multiprocessing tests fail on chromebook under crouton generated chroots

2015-05-09 Thread Ned Deily
Ned Deily added the comment: The failures seem pretty clear: OSError: [Errno 28] No space left on device Are you allocating enough disk space in the chrooted environments? The amount of free space needed to run all the tests varies by platform, by architecture, by test options selected,

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-09 Thread Nick Coghlan
Nick Coghlan added the comment: Review sent - very nice work on this Yury. Highlights: * I concur with Stefan that we should have a full PyCoroutineMethods struct at the C level, with a tp_as_coroutine pointer to that replacing the current tp_reserved slot * I also concur with Stefan about

[issue24155] Optimize heapify for better cache utililzation

2015-05-09 Thread Raymond Hettinger
New submission from Raymond Hettinger: Heapify() is implemented with a series of siftup() operations that aggregate small heaps into bigger heaps. The current algorithm builds all the smallest heaps first, then makes all of the next largest size, and so on. This is not cache friendly

[issue24155] Optimize heapify for better cache utililzation

2015-05-09 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file39332/wordy_explanation.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24155 ___

[issue24104] Use after free in xmlparser_setevents (2)

2015-05-09 Thread Alex Lord
Alex Lord added the comment: ../cpython/python.exe test_xmlparser_setevents.py __del__ 1 __del__ 3 Segmentation fault: 11 Confirmation on 3.5.0a4 Python 3.5.0a4+ -- nosy: +Alex.Lord ___ Python tracker rep...@bugs.python.org

[issue24151] test_pydoc fails

2015-05-09 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. I'm not able to reproduce the failure myself. Can you give more information on what platform this was run on (OS version) and at what changeset the build was with (hg summary)? Perhaps you could try debugging the execution of that test

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Nick Coghlan
Nick Coghlan added the comment: Since it took me a moment to figure out why the extra incref was needed: * both PyException_SetCause and PyException_SetContext steal a reference to their second argument * hence we need the second incref, rather than relying solely on the reference received

[issue24152] test_mailcap fails

2015-05-09 Thread ryan
New submission from ryan: UnicodeDecodeError -- components: Tests files: results hgrepos: 308 messages: 242840 nosy: petrosr2 priority: normal severity: normal status: open title: test_mailcap fails type: crash versions: Python 2.7 Added file: http://bugs.python.org/file39330/results

[issue24155] Optimize heapify for better cache utililzation

2015-05-09 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file39333/better_heapify.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24155 ___

[issue24155] Optimize heapify for better cache utililzation

2015-05-09 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Removed file: http://bugs.python.org/file39331/draft_heapq.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24155 ___

[issue24152] test_mailcap fails

2015-05-09 Thread ryan
ryan added the comment: running command over PuTTY on Ubuntu 3.13, python 2.7.6 $ ./python -m test test_mailcap [1/1] test_mailcap test test_mailcap failed -- Traceback (most recent call last): File /home/petrosr2/Documents/opensource/cpy/Lib/test/test_mailcap.py, line 126, in

[issue24152] test_mailcap fails if a mailcap file contains a non-decodable character

2015-05-09 Thread Ned Deily
Ned Deily added the comment: I can reproduce the failure by arbitrarily adding a non-ascii character to one of the mailcap files searched for by the mailcap module (https://docs.python.org/3/library/mailcap.html#mailcap.getcaps), like $HOME/.mailcap, and by setting the process to an

[issue24154] pathlib.Path.rename moves file to Path.cwd() when argument is a string

2015-05-09 Thread Yuri Teixeira
New submission from Yuri Teixeira: from pathlib import Path p = Path('/any/folder') f = p / 'oldname' f.rename('newname') The above will rename the file 'oldname' to 'newname' but will also move it to Path.cwd() I thought that pathlib.Path.rename() when fed with a string would change f.name

[issue24153] threading/multiprocessing tests fail on chromebook under crouton generated chroots

2015-05-09 Thread Ryan Shupe
New submission from Ryan Shupe: I set up my Asus chromebook c200 with crouton and installed two chroot environments under the trusty release. In one I built and ran the tests for Python 3.5.0a4+ See stacktrace of resulting error: [209/394/2] test_multiprocessing_fork [210/394/3]

[issue23857] Make default HTTPS certificate verification setting configurable

2015-05-09 Thread Nick Coghlan
Nick Coghlan added the comment: First draft of a recommendations PEP: https://hg.python.org/peps/rev/85bc7f13b295 (PEP 493) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23857 ___

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2015-05-09 Thread Berker Peksag
Berker Peksag added the comment: datetime.strptime is a classmethod, but the new date.strptime and time.strptime methods are staticmethods. I think we should make the new methods classmethods too. -- stage: needs patch - patch review ___ Python

[issue24140] In pdb using until X doesn't seem to have effect in commands

2015-05-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: test.py is missing. -- nosy: +xdegaye ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24140 ___ ___

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2015-05-09 Thread Maciej Szulik
Maciej Szulik added the comment: I've just double checked, this patch applies cleanly to latest tip. I wouldn't mind having this reviewed and merged. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100942

[issue18551] child_exec() doesn't check return value of fcntl()

2015-05-09 Thread Mark Lawrence
Mark Lawrence added the comment: Calls to fcntl have been replaced by calls to _Py_set_inheritable so I'd assume that this can be closed as out of date. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker

[issue24147] doublequote are not well recognized with Dialect class

2015-05-09 Thread Skip Montanaro
Skip Montanaro added the comment: Can you attach your cab file so we don't need to reconstruct it (and possibly make a mistake) by reading your program's output? -- nosy: +skip.montanaro ___ Python tracker rep...@bugs.python.org

[issue18814] Add codecs.convert_surrogateescape to clean surrogate escaped strings

2015-05-09 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: Please do not add the rehandle functions to codecs. They do not change the (duck-typed) representation of data while maintaining the semantics, they change the semantics of data while retaining the representation. I suggest a validation submodule of the

[issue24145] Support |= for parameters in converters

2015-05-09 Thread Tal Einat
Tal Einat added the comment: Well, the main reasons I'm +1 on the |= feature (regardless of specific syntax) are: 1) the intent is much clearer: e.g. also accept None, nothing else special going on 2) much easier maintenance if the default set of accepted types ever changes Also, this is one

[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit

2015-05-09 Thread Ivan K
Ivan K added the comment: Sorry, forget to answer. I think I know the reason. Issue I think placed inside ATLAS library. Issue not reproducable on Mac OS X because it's have a bit different thread model. The only single platform is Linux (not tested on Windows btw). So main guess right now

[issue18789] XML Vunerability Table Unclear

2015-05-09 Thread Mark Lawrence
Mark Lawrence added the comment: @Joe The latest documentation has an additional sentence above the table The following table gives an overview of the known attacks and whether the various modules are vulnerable to them. and the table has been changed to say Yes or No. Is this okay with you?

[issue18751] A manager's server never joins its threads

2015-05-09 Thread Mark Lawrence
Mark Lawrence added the comment: I've checked the code and this doesn't appear to have been implemented. I looked into providing a patch myself, but all the returns from calls to util.Finalize that I could find were assigned to different attribute names, so I'm not confident enough to

[issue24127] Fatal error in launcher: Job information querying failed

2015-05-09 Thread eryksun
eryksun added the comment: 1. Bug in Windows 10, which should be reported to Microsoft. It appears to be a bug in the kernel. It's isn't updating the value of of the output parameter *lpReturnLength. C:\ver Microsoft Windows [Version 10.0.10074] C:\cdb -xi ld py Microsoft

[issue24140] In pdb using until X doesn't seem to have effect in commands

2015-05-09 Thread vyktor
vyktor added the comment: Adding test.py, but according to docs https://docs.python.org/3.2/library/pdb.html#pdbcommand-commands Specifying any command resuming execution (currently continue, step, next, return, jump, quit and their abbreviations) terminates the command list (as if that

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks Nick and Berker for the reviews! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906 ___

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- stage: commit review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906 ___ ___

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Berker Peksag
Berker Peksag added the comment: Buildbots are not happy: [ 63/393] test_contextlib Fatal Python error: Objects/frameobject.c:429 object at 0x200041abc28 has negative ref count -2604246222170760230 Current thread 0x022c2500 (most recent call first): File

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Chris Angelico
Chris Angelico added the comment: Weird. Tests ran fine on my machine too. Interestingly, that number is 0xdbdbdbdbdbdbdbda - does that mean anything? (It's negative 0x2424242424242426, for what that's worth.) -- ___ Python tracker

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 36a8d935c322 by Yury Selivanov in branch 'default': PEP 479: Change StopIteration handling inside generators. https://hg.python.org/cpython/rev/36a8d935c322 -- ___ Python tracker rep...@bugs.python.org

[issue24140] In pdb using until X doesn't seem to have effect in commands

2015-05-09 Thread vyktor
vyktor added the comment: In here: /home/vyktor/src/error/minimal.py(1)module() - print('1') (Pdb) break 2 Breakpoint 1 at /home/vyktor/src/error/minimal.py:2 (Pdb) commands 1 (com) print('Triggered bp 1') (com) until 4 (com) end (Pdb) cont 1 Triggered bp 1

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Chris Angelico
Chris Angelico added the comment: Thanks everyone for all the help getting this to land! This is going to be a part of my active python3 binary from now on :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906

[issue24147] doublequote are not well recognized with Dialect class

2015-05-09 Thread Mik
Mik added the comment: Hi, This is the file used for my test. Thank you, regard, Mik -- Added file: http://bugs.python.org/file39328/sans_headers.csv ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24147

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Yury Selivanov
Yury Selivanov added the comment: Strange, the test suite was running just fine on my machine. I'll take a closer look later today. -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Yury Selivanov
Yury Selivanov added the comment: I think it crashes in debug mode or something. Somewhere we did too many decrefs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906 ___

[issue24148] 'cum' not a valid sort key for pstats.Stats.sort_stats

2015-05-09 Thread ramiro
New submission from ramiro: On the documentation page The Python Profilers https://docs.python.org/3.4/library/profile.html#instant-user-s-manual the following example is given: p.sort_stats('time', 'cum').print_stats(.5, 'init') This raises a KeyError, because 'cum' is not available as a

[issue18814] Add codecs.convert_surrogateescape to clean surrogate escaped strings

2015-05-09 Thread Nick Coghlan
Nick Coghlan added the comment: surrogateescape and surrogateepass data *already* can't be inverted back to bytes reliably without knowing the original encoding - if you encode them as something else when they contain surrogates, you'll either get an exception (the default) or mojibake (if you

[issue24147] doublequote are not well recognized with Dialect class

2015-05-09 Thread Skip Montanaro
Skip Montanaro added the comment: Sorry, failed to override my phone's spell correction. cab should be csv. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24147 ___

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Yury Selivanov
Yury Selivanov added the comment: Berker, buildbots should be happy now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906 ___ ___

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d8bc813d270 by Yury Selivanov in branch 'default': Issue 22906: Increment refcount after PyException_SetContext https://hg.python.org/cpython/rev/5d8bc813d270 -- ___ Python tracker

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset d15c26085591 by Yury Selivanov in branch 'default': Issue 22906: Add test file. https://hg.python.org/cpython/rev/d15c26085591 -- ___ Python tracker rep...@bugs.python.org

[issue24018] add a Generator ABC

2015-05-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7cc54086cd2 by Guido van Rossum in branch 'default': Fix news entry for issue 24018. https://hg.python.org/cpython/rev/f7cc54086cd2 -- ___ Python tracker rep...@bugs.python.org

[issue24018] add a Generator ABC

2015-05-09 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed. On Fri, May 8, 2015 at 10:28 PM, Stefan Behnel rep...@bugs.python.org wrote: Stefan Behnel added the comment: Thanks! Minor grouch: it should say collections.*abc*.Generator in the NEWS entry. --

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906 ___ ___ Python-bugs-list

[issue24149] Issue with unit tests

2015-05-09 Thread Becklin Haston
New submission from Becklin Haston: Hello. Having issue when running unit tests for Python v3.5. Encountering failure when doing test 75/393. File attached is relevant traceback. -- components: Tests files: traceback.txt messages: 242829 nosy: hastonb priority: normal severity: normal

[issue24149] Issue with unit tests

2015-05-09 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. This problem was just introduced and just fixed an hour ago: see issue22906. Try updating to the very latest tip and try again. -- nosy: +ned.deily resolution: - out of date stage: - resolved status: open - closed

[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit

2015-05-09 Thread Davin Potts
Davin Potts added the comment: @Ivan.K: Can you be more specific about which linux platform you are using? To reproduce, should I use Ubuntu, Fedora, OpenSUSE, ... and which version of that linux distro? -- ___ Python tracker

[issue24150] text_contextlib fails on Mac OSX 10.10.3

2015-05-09 Thread rainier
New submission from rainier: Test 75 test_contextlib fails. Fatal Python error: Objects/frameobject.c:429 object at 0x10fa32178 has negative ref count -2604246222170760230 Exception: Child error on test_contextlib: Exit code -6 Thread hangs and must be force exited on Mac OSX 10.10.3 Problem

[issue24150] text_contextlib fails on Mac OSX 10.10.3

2015-05-09 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. This problem has just been fixed. Please update and try again. -- nosy: +ned.deily resolution: - out of date stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue24150] text_contextlib fails on Mac OSX 10.10.3

2015-05-09 Thread Ned Deily
Ned Deily added the comment: (See Issue22906 for details.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24150 ___ ___ Python-bugs-list mailing

[issue24140] In pdb using until X doesn't seem to have effect in commands

2015-05-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: The bug occurs also on the default branch: '3.5.0a4+ (default:8bac00eadfda, May 6 2015, 17:40:12) \n[GCC 4.9.2 20150304 (prerelease)]' The reason is that 'do_until' is missing from the Pdb.commands_resuming list, which causes the Pdb.bp_commands() method to

[issue24151] test_pydoc fails

2015-05-09 Thread Rebecca Hsieh
New submission from Rebecca Hsieh: While running this command: ./python -m test.test_pydoc -j3 the error underneath was produced. The AssertionError of 'walkpkg' was not found. Fails around the test_apropos_empty_doc (_main_.PydocImportTest). The following is the stack trace that was