[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset e3510d74aacc477c30f42f2b941d69689bbc478e by Victor Stinner in branch 'master': bpo-31160: regrtest now reaps child processes (#3044) https://github.com/python/cpython/commit/e3510d74aacc477c30f42f2b941d69689bbc478e --

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4baca1b0f7325032598cd38e7ceffc79b616d255 by Victor Stinner in branch 'master': bpo-31160: Fix test_builtin for zombie process (#3043) https://github.com/python/cpython/commit/4baca1b0f7325032598cd38e7ceffc79b616d255 --

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 4baca1b0f7325032598cd38e7ceffc79b616d255 by Victor Stinner in > branch 'master': > bpo-31160: Fix test_builtin for zombie process (#3043) This change introduced a regression:

[issue31072] add filter to zipapp

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be better to name the parameter filterfunc for conformity with PyZipFile? I think the new feature needs at least the versionadded directive in the module documentation. And may be an entry in the What's New document. -- nosy:

[issue31162] urllib.request.urlopen error

2017-08-09 Thread R. David Murray
R. David Murray added the comment: What makes you think this is a python bug rather than exactly what it says: a cert verification error? -- nosy: +r.david.murray ___ Python tracker

[issue30824] Add mimetype for extension .json

2017-08-09 Thread Nate Tangsurat
Changes by Nate Tangsurat : -- pull_requests: +3082 ___ Python tracker ___ ___

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Paul Moore added the comment: Good point - I wasn't even aware of the filterfunc argument in PyZipFile. I'll rename the argument. I wasn't initially sure about a what's new entry. I'll add one - and thanks for the reminder about versionadded. --

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3079 ___ Python tracker ___ ___

[issue31163] Return destination path in Path.rename and Path.replace

2017-08-09 Thread R. David Murray
R. David Murray added the comment: I agree. The normal python convention is that an immutable object returns the new value when an operation "changes" it, while a mutable object returns None. It seems like replace and rename should follow this convention (and that it would also be

[issue31153] Update docstrings of itertools functions

2017-08-09 Thread nicholas kobald
Changes by nicholas kobald : -- pull_requests: +3081 ___ Python tracker ___ ___

[issue30824] Add mimetype for extension .json

2017-08-09 Thread Sijis Aviles
Changes by Sijis Aviles : -- nosy: +sijis ___ Python tracker ___ ___ Python-bugs-list

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-08-09 Thread Wonsup Yoon
Wonsup Yoon added the comment: I think it can be merged. Is there anything I need to do? -- ___ Python tracker ___

[issue31142] python shell crashed while input quotes in print()

2017-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: terry.reedy -> ___ Python tracker ___ ___

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Although my freshly opened window says PR2822 is open, it was merged with https://github.com/python/cpython/commit/3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162 4 hours ago, and then backported. Louie, thanks for the patch and the persistence. --

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-08-09 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file47070/800.jpg ___ Python tracker ___

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not our code. Please use corresponding bug tracker [1] if you have found a bug in Expat. But I think there is not a bug here. [1] https://github.com/libexpat/libexpat/issues -- nosy: +serhiy.storchaka resolution: -> third party stage: ->

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is about IDLE getting further out of the business of calculating signatures and depending instead on the newest (and tested) inspect function. In 2012, the blogger used getargspec, which was deprecated for 3.x a few years before, in 3.0. I suspect

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-08-09 Thread 高可爱
Changes by 高可爱 : Added file: http://bugs.python.org/file47070/800.jpg ___ Python tracker ___

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Vedran Čačić
Vedran Čačić added the comment: Am I right in assuming this will also fix the bug mentioned in this comment https://emptysqua.re/blog/copying-a-python-functions-signature/#comment-1816090904 ? If yes, I'm glad I didn't have to report it. :-) -- nosy: +veky

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 646f6c3096abfe5bde13f039ebf32bce5baf083a by Terry Jan Reedy in branch '3.6': [3.6] bpo-19903: IDLE: Calltips changed to use inspect.signature (GH-2822) (#3053) https://github.com/python/cpython/commit/646f6c3096abfe5bde13f039ebf32bce5baf083a

[issue31170] expat: utf8_toUtf8 cannot properly handle exhausting buffer

2017-08-09 Thread Lin Tian
New submission from Lin Tian: utf8_toUtf8(const ENCODING *UNUSED_P(enc), const char **fromP, const char *fromLim, char **toP, const char *toLim) { char *to; const char *from; const char *fromLimInitial = fromLim; /* Avoid copying partial characters. */

[issue31167] timedelta produced by datetime.__sub__ does not take Daylight Savings Time into account

2017-08-09 Thread R. David Murray
R. David Murray added the comment: It is by design. Read the footnote associated with the subtraction opertion on datetimes: after subtraction date2 + timedelta = date1, which implies that the subtraction ignores daylight savings transitions, since the addition does ("Note that no time zone

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Vedran Čačić
Vedran Čačić added the comment: Hm... now I see that link is very misleading... it opens a blog post, and then only a few seconds later jumps to the comment. So now I'll paste the comment here, to avoid misunderstandings: Python3.6.0 (now in 2017). I start IDLE, and write >>> def deco(f):

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-08-09 Thread Xiang Zhang
Xiang Zhang added the comment: Hi Wonsup, sorry for the delay. I get really busy with my work these days. If no one get involved I'd try to find time reviewing your patch this week. -- ___ Python tracker

[issue31153] Update docstrings of itertools function

2017-08-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Docstrings of some itertools functions look outdated. 1. The docstring of groupby() contains the signature "groupby(iterable[, keyfunc])". But groupby() supports keyword arguments, the name of the second parameter is "key", and its default value is None.

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb on AMD64 Windows8.1 Refleaks 3.x

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the solution can be simpler. PR 3033 uses the global import lock for guarding modification of the _module_locks dictionary. -- components: +Interpreter Core -Tests stage: -> patch review type: -> behavior versions: +Python 3.6

[issue26656] Documentation for re.compile is a bit outdated

2017-08-09 Thread SylvainDe
SylvainDe added the comment: @swapnil agarwal I think you can go for it. -- ___ Python tracker ___ ___

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2017-08-09 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___

[issue31082] reduce takes iterable, not just sequence

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The term "sequence" also is used in the docstring of itertools.starmap() (actually an iterable is accepted). -- ___ Python tracker

[issue31153] Update docstrings of itertools functions

2017-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Update docstrings of itertools function -> Update docstrings of itertools functions ___ Python tracker

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb on AMD64 Windows8.1 Refleaks 3.x

2017-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3068 ___ Python tracker ___ ___

[issue31141] Start should be a keyword argument of the built-in sum

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Adding this feature is so easy as moving '/' in Argument Clinic declaration one line up. I don't think it is worth to allow passing the first argument as a keyword argument. Check what performance effect of this change on simple calls sum(()), sum((), 0).

[issue31154] Path.replace and Path.rename naming, behavior and documentation

2017-08-09 Thread Alberto Gomez-Casado
New submission from Alberto Gomez-Casado: I find the naming of Path.replace quite unfortunate, coming from the os.path and basestring mindset, the expectation would be that it would change some substring by another substring in the Path instance. Instead, it _moves_ the file indicated by the

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_threaded_import: KeyError ignored in _get_module_lock..cb on AMD64 Windows8.1 Refleaks 3.x -> test_threaded_import: KeyError ignored in _get_module_lock..cb ___ Python tracker

[issue31135] [2.7] test_ttk_guionly doesn't destroy all widgets on Python 2.7

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 33460fa7e0bd126bee739a66e1228665dc22e70f by Victor Stinner in branch '3.6': ttk: fix LabeledScale and OptionMenu destroy() method (#3025) (#3030) https://github.com/python/cpython/commit/33460fa7e0bd126bee739a66e1228665dc22e70f --

[issue31150] [EASY] test_thread: Warning -- reap_children() reaped child process

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 88eee44a91c991dbbdf284fa220e2928b5de105c by Victor Stinner (Ammar Askar) in branch 'master': bpo-31150: Wait for child process in test_forkinthread to avoid thread reaped warnings (#3032)

[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's too late to change *again* subprocess.getstatusoutput() behaviour. Otherwise, it would mean that a complex test like "if not((3, 4) <= sys.version_info < (3, 7))" would be needed to workaround the bug... Whereas right now, basically we only have to

[issue31157] math.sqrt function wrong

2017-08-09 Thread Mick Press
New submission from Mick Press: math.sqrt for very large numbers returns wrong value. Attached is screen shot showing my sqrt function result and math.sqrt function result. -- components: Windows files: PyCuda - [C__Users_mick_PyScripts_PyCuda] -

[issue30849] test_stress_delivery_dependent() of test_signal randomly fails on AMD64 Debian root 3.6

2017-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm. Perhaps someone can give me temporary shell access to one of those buildbots? -- nosy: +zach.ware ___ Python tracker

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "I think the solution can be simpler. PR 3033 uses the global import lock for guarding modification of the _module_locks dictionary." I tried exactly that, but it wasn't enough. But your PR is correct because it also checks the current value of

[issue31155] Encode set, frozenset, bytearray, and iterators as json arrays

2017-08-09 Thread Javen O'Neal
New submission from Javen O'Neal: Currently json.dump, json.dumps, and json.JSONEncoder do not support writing iterator objects. Users can choose to pass the iterator to a tuple and write that as a json array, but this is wasteful if the iterator is large, requiring a large amount of memory

[issue31157] math.sqrt function wrong

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: The math module uses the float type which has a limited precision: it's 64-bit IEEE. For better precision, you can use the decimal module which has configurable precision. Example: --- import decimal decimal.getcontext().prec = 5 root =

[issue30849] test_stress_delivery_dependent() of test_signal randomly fails on AMD64 Debian root 3.6

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: Antoine: "Hmm. Perhaps someone can give me temporary shell access to one of those buildbots?" Contact directly the owners: * AMD64 Debian root 3.6: Chris Angelico * x86 Gentoo Non-Debug with X 3.x: Zachary Ware

[issue31150] [EASY] test_thread: Warning -- reap_children() reaped child process

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue31156] Stopiteration terminates while-loop

2017-08-09 Thread Günter Rote
New submission from Günter Rote: It should be mentioned in the documentation that A StopIteration exception raised in the body of a while loop will terminate (and is caught by) the while-loop, thus leading to graceful termination. A good place would be here: 1)

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread STINNER Victor
New submission from STINNER Victor: https://travis-ci.org/python/cpython/jobs/262606831 0:13:26 load avg: 134.81 [256/403] test_pty test test_pty failed -- Traceback (most recent call last): File "/home/travis/build/python/cpython/Lib/test/test_pty.py", line 109, in test_basic

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: I don't know why test_pty fails. https://github.com/python/cpython/pull/3037 makes sure that all data is written into the master fd using a new write_all() helper function which loops until all data is written: handle os.write() partial write. --

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3070 ___ Python tracker ___ ___

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9b0d1d647e3d2ec9d299e5c9f49b02fbbb810a5a by Serhiy Storchaka in branch 'master': bpo-31070: Fix a race condition in importlib _get_module_lock(). (#3033) https://github.com/python/cpython/commit/9b0d1d647e3d2ec9d299e5c9f49b02fbbb810a5a

[issue31159] Doc: Language switch can't switch on specific cases

2017-08-09 Thread Julien Palard
New submission from Julien Palard: Since ja has been added to the language switch, a bug appeared and in some case the switch won't ... switch. Due to a regex bug in switchers.js, a needed trailing slash is sometimes not matched. It has not been detected previously as it can happen only when

[issue31159] Doc: Language switch can't switch on specific cases

2017-08-09 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3072 ___ Python tracker ___

[issue31149] Add Japanese to the language switcher

2017-08-09 Thread Julien Palard
Changes by Julien Palard : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread Martin Panter
Martin Panter added the comment: Checking for short writes is worthwhile, but in Issue 29070 it looks like Cornelius identified the main problem was short _reads_. See the parts of his patch to do with “_os_read_exactly” and related functions. -- nosy: +Cornelius Diekmann,

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f3b891718e104b6e7018b58bbcd86421a2837fb8 by Serhiy Storchaka in branch '3.6': [3.6] bpo-31070: Fix a race condition in importlib _get_module_lock(). (GH-3033). (#3038)

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for review Victor and Nick. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3071 ___ Python tracker ___ ___

[issue31045] Add a language switch to the Python documentation

2017-08-09 Thread Julien Palard
Changes by Julien Palard : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31148] Can we get an MSI installer for something past 3.4.4?

2017-08-09 Thread Paul Moore
Paul Moore added the comment: To be clear, Steve *is* our main Windows developer, and specifically the person who developed the Windows installers we now use. They work perfectly for many people, including myself, so there certainly isn't a general issue with them. I myself routinely install

[issue31158] test_pty: test_basic() fails randomly on Travis CI

2017-08-09 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: I've observed the exact same issue on Fedora at random times. -- nosy: +cstratak ___ Python tracker ___

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
New submission from STINNER Victor: Attached PR enhances the support.reap_children() function: * reap_children() now sets environment_altered to True to detect bugs using python3 -m test --fail-env-changed * Replace bare "except:" with "except OSError:" in reap_children() * Write an unit test

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: The GCC job of Travis CI failed with ENV_CHANGED: Test wait() behavior when waitpid returns WIFSTOPPED; issue29335. ... Warning -- reap_children() reaped child process 19839 ok I tested and... WOW! When run in a loop, this test leaks 100 MB per second. It

[issue31142] python shell crashed while input quotes in print()

2017-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is still something you left out. Entering either print(") or print(') at either a shell prompt or in a file and running the file should result in "SyntaxError: EOL while scanning string literal", as Steven said. Ditto for eval("print(')") or

[issue31155] Encode set, frozenset, bytearray, and iterators as json arrays

2017-08-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> bob.ippolito nosy: +bob.ippolito ___ Python tracker ___

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Changes by Paul Moore : -- pull_requests: +3084 ___ Python tracker ___ ___

[issue31153] Update docstrings of itertools functions

2017-08-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Paul Moore added the comment: I've created a new PR 3049 adding the fixes you suggested (and tightening up the tests, as I noticed an untested aspect of the change while editing). -- ___ Python tracker

[issue31152] Tutorial wording implies an understanding of a concept prior to it being introduced

2017-08-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Emily, thanks for the second review. Lorem, thanks for the suggestion, but we're going to decline. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2017-08-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'll get to it. acassaigne's patches are already a good attempt at that, i'll probably find wording tweaks to make as I apply them. -- assignee: docs@python -> gregory.p.smith ___ Python tracker

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset da5e9301877346942fa4279612750d6a09e05153 by Victor Stinner in branch 'master': bpo-31160: Fix test_random for zombie process (#3045) https://github.com/python/cpython/commit/da5e9301877346942fa4279612750d6a09e05153 --

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3080 ___ Python tracker ___ ___

[issue31164] test_functools: test_recursive_pickle() stack overflow on x86 Gentoo Refleaks 3.x

2017-08-09 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Gentoo%20Refleaks%203.x/builds/51/steps/test/logs/stdio 0:17:12 load avg: 2.97 [ 52/406/1] test_functools crashed (Exit code -6) -- running: test_nntplib (406 sec) beginning 6 repetitions 123456 Fatal Python

[issue31163] Return destination path in Path.rename and Path.replace

2017-08-09 Thread Alberto Gomez-Casado
New submission from Alberto Gomez-Casado: Extracted from issue31154 Both calls lack any kind of return, which leads me to expect after a rename/replace the Path instance would be changed to the new path. This is not the case (reading the PEP I have seen Path instances are kind of immutable),

[issue19903] Idle: Use inspect.signature for calltips

2017-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3086 ___ Python tracker ___ ___

[issue5001] Remove assertion-based checking in multiprocessing

2017-08-09 Thread drallensmith
Changes by drallensmith : -- nosy: +drallensmith ___ Python tracker ___ ___

[issue31165] null pointer deref and segfault in list_slice (listobject.c:455)

2017-08-09 Thread geeknik
New submission from geeknik: Python 3.7 git commit 3ca9f50 compiled with afl-clang-fast on Ubuntu 16 x64. The following script triggers undefined-behavior followed by a null pointer dereference and a segfault. import weakref class A(object):pass def callback(x):del lst[0] keepali0e=[] for i

[issue26110] Speedup method calls 1.2x

2017-08-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31165] null pointer deref and segfault in list_slice (listobject.c:455)

2017-08-09 Thread geeknik
Changes by geeknik : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list

[issue31168] IDLE hangs with absurdly long __repr__s

2017-08-09 Thread Dan Snider
New submission from Dan Snider: Objects with a 500,000+ character __repr__ will cause the IDLE shell to hang and thus lose any progress on open windows. 200,000 (on a decent system) seems to be the tipping point where it can never recover. -- assignee: terry.reedy components: IDLE

[issue31166] null pointer deref and segfault in _PyObject_Alloc (obmalloc.c:1258)

2017-08-09 Thread geeknik
New submission from geeknik: Python 3.7 git commit 3ca9f50 compiled with afl-clang-fast on Ubuntu 16 x64. The following script triggers undefined-behavior followed by a null pointer dereference and a segfault. import gc t0ing0=object() class A(object): def f():0 x=t0ing0

[issue31167] timedelta produced by datetime.__sub__ does not take Daylight Savings Time into account

2017-08-09 Thread Joshua Li
New submission from Joshua Li: See my SO answer and the corresponding question for detail: https://stackoverflow.com/a/45602760/5348393 Essentially, given two datetime.datetime instances t1 and t2, the following two syntactically different lines of code should be logically equivalent, but in

[issue31169] convert_to_error assertion failure in multiprocessing/managers.py

2017-08-09 Thread drallensmith
New submission from drallensmith: I am seeing a triggering of one of the assertions in convert_to_error, in managers.py. (This assertion is completely without any message, incidentally, which is also problematic - I've commented on this in issue5001.) This is in common across all versions of

[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2017-08-09 Thread Nick Coghlan
Nick Coghlan added the comment: Issue filed with six about this: https://github.com/benjaminp/six/issues/207 It turns out to be somewhat timely on that side as well, as it turns out that six has a not-yet-released change adding "six.moves.commands", which doesn't currently account for this

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: > The GCC job of Travis CI failed with ENV_CHANGED: Ooops, in fact it was a macOS job: https://travis-ci.org/python/cpython/jobs/262606830 The GCC job failed with much more errors: https://travis-ci.org/python/cpython/jobs/262606831 --- 0:00:02 load avg:

[issue31161] Only check for print and exec parentheses cases for SyntaxError, not subclasses

2017-08-09 Thread Martijn Pieters
New submission from Martijn Pieters: SyntaxError.__init__() checks for the `print` and `exec` error cases where the user forgot to use parentheses: >>> exec 1 File "", line 1 exec 1 ^ SyntaxError: Missing parentheses in call to 'exec' >>> print 1 File "", line 1 print 1

[issue31156] Stopiteration terminates while-loop

2017-08-09 Thread R. David Murray
R. David Murray added the comment: >>> while True: ... raise StopIteration ... Traceback (most recent call last): File "", line 2, in StopIteration -- nosy: +r.david.murray ___ Python tracker

[issue31150] [EASY] test_thread: Warning -- reap_children() reaped child process

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 425680bbd2dc14ef8dc5d1928f44fc7cc43018c4 by Victor Stinner (Ammar Askar) in branch '2.7': [2.7] bpo-31150: Wait for child process in test_forkinthread to avoid thread reaped warnings (#3042)

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3078 ___ Python tracker ___ ___

[issue31041] test_handle_called_with_mp_queue() of test_logging: threading_cleanup() failed to cleanup, on AMD64 FreeBSD 10.x Shared 3.x

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: New fail: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/680/steps/test/logs/stdio test_handle_called_with_mp_queue (test.test_logging.QueueListenerTest) ... Warning -- threading_cleanup() failed to cleanup -1 threads

[issue31154] Path.replace and Path.rename naming, behavior and documentation

2017-08-09 Thread R. David Murray
R. David Murray added the comment: Both the replace and rename functions will remain in the API, as they mirror the os module, not the os itself. I agree that the naming is unfortunate, but it has the weight of history behind it, so we are stuck with it. Issue 24229 rejected adding a copy

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread Nick Coghlan
Nick Coghlan added the comment: I don't think the changes created the bug, but I do think the new tests to provoke the other race conditions made it easier for the test suite to hit this race as well. -- ___ Python tracker

[issue31160] Enhance support.reap_children()

2017-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3074 ___ Python tracker ___ ___

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: > I don't think the changes created the bug, but I do think the new tests to > provoke the other race conditions made it easier for the test suite to hit > this race as well. Oh ok, that's a good news! -- ___

[issue31162] urllib.request.urlopen error

2017-08-09 Thread CHUA Chew Bock
Changes by CHUA Chew Bock : Added file: http://bugs.python.org/file47069/scriptError.txt ___ Python tracker ___

[issue31162] urllib.request.urlopen error

2017-08-09 Thread CHUA Chew Bock
New submission from CHUA Chew Bock: Error encountered when executing urllib.request.urlopen on IDLE3 interactive as well as run from script. -- components: Library (Lib) messages: 300012 nosy: chua.chewb...@gmail.com priority: normal severity: normal status: open title:

[issue31152] Tutorial wording implies an understanding of a concept prior to it being introduced

2017-08-09 Thread Emily Morehouse
Emily Morehouse added the comment: I concur with Raymond, particularly because paragraph 1 of section 8.5 links to the Classes tutorial which covers inheritance. I think the documentation is sufficient as is. -- nosy: +emilyemorehouse ___ Python

[issue31072] add filter to zipapp

2017-08-09 Thread Paul Moore
Paul Moore added the comment: Thanks to Jeffrey Rackauckas for the implementation of this feature. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue31156] Stopiteration terminates while-loop

2017-08-09 Thread Günter Rote
Günter Rote added the comment: Sorry, that was my misinterpretation of what happened. I had been stumbling over an old program I had written, but apparently it works because the while-loop is inside a generator function, and the StopIteration is simply passed on. Here is a small demonstration

[issue31150] [EASY] test_thread: Warning -- reap_children() reaped child process

2017-08-09 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +3075 ___ Python tracker ___ ___

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-08-09 Thread STINNER Victor
STINNER Victor added the comment: I'm curious to know if this issue is a regression caused by recent changes: bpo-30891 and bpo-30876. But well, it doesn't matter as soon as it's fixed :-) -- ___ Python tracker

  1   2   >