[issue30308] Add code coverage for argument in random.shuffle

2017-05-09 Thread Mark Dickinson
Mark Dickinson added the comment: I see you've added a test for the behaviour of: shuffle(seq, random=lambda: -1.0) I'd suggest leaving that test out: that this works right now is really just an accident of the (CPython) implementation, and it may well not work on other Python implementat

[issue29262] Provide a way to check for *real* typing.Union instances

2017-05-09 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: The discussed functionality is published as a separate package: https://pypi.python.org/pypi/typing-inspect https://github.com/ilevkivskyi/typing_inspect After the API is settled, some introspection functions may be added directly to typing. -- _

[issue30308] Add code coverage for argument in random.shuffle

2017-05-09 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue30308] Add code coverage for argument in random.shuffle

2017-05-09 Thread Mark Dickinson
Mark Dickinson added the comment: I'm also a bit uncomfortable with adding tests for other specific exceptions when a misbehaving `random` is passed: again, the details of whether an exception is raised or not for "self.assertRaises(IndexError, shuffle, seq, random=lambda: -1.1)", and which pr

[issue21261] Teach IDLE to Autocomplete dictionary keys

2017-05-09 Thread Louie Lu
Louie Lu added the comment: I'm not sure the "safer" meaning. If it is about for beginner less confuse when mistakenly typing "d[long_", the answer will be yes for only complete string keys. Impl complexity between str-only and not-str-only will not have too much different, only need to chang

[issue30297] Recursive starmap causes Segmentation fault

2017-05-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Since this is duplicate, marking as closed. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30312] Small correction in set code sample

2017-05-09 Thread Oskar Weser
New submission from Oskar Weser: There is a code example about the set type found under: https://docs.python.org/3/tutorial/datastructures.html It reads as: ``` >>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} >>> print(basket) # show that duplicates hav

[issue30293] Peephole binops folding can lead to memory and bytecache ballooning

2017-05-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looking back at the OP's timings in the referenced SO question, I would expect that if someone "fixed" this issue, it wouldn't be long before someone else filed a performance regression bug claiming a 63,000x slowdown in exactly the same code. I'm marking

[issue30312] Small correction in set code sample

2017-05-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM the result of the expression makes the meaning clear: >>> a | b {'r', 'l', 'b', 'c', 'z', 'd', 'a', 'm'} That said, the text might be a little clearer like this: # letters in a or b or both -- assignee: docs@python -> Mariatta nosy:

[issue30306] release arguments of contextmanager

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be better to split _GeneratorContextManager on two classes rather than add a boolean argument? Currently _GeneratorContextManager used two different functions -- an one-shot context manager and a decorator that recreates context managers. Proposed

[issue30293] Peephole binops folding can lead to memory and bytecache ballooning

2017-05-09 Thread Martijn Pieters
Martijn Pieters added the comment: Thanks Raymond, for the response. I agree, we can't prevent all possible misuse, and avoiding the memory issue would require overly costly checks as to what is being multiplied or added. -- ___ Python tracker

[issue30258] [2.7] regrtest: handle child process crash

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 74683fc6247c522ae955a6e7308b8ff51def35d8 by Victor Stinner in branch 'master': bpo-30258: regrtest: Fix run_tests_multiprocess() (#1479) https://github.com/python/cpython/commit/74683fc6247c522ae955a6e7308b8ff51def35d8 -- __

[issue504219] locale.resetlocale is broken

2017-05-09 Thread Nick Coghlan
Nick Coghlan added the comment: Trying to come up with a short LC_MONETARY example for PEP 538, I just ran into what seems to be a related problem with locale.resetlocale(), which is that it doesn't work properly for categories other than LC_CTYPE: locale.getdefaultlocale() doesn't let you say

[issue30301] “AttributeError: 'SimpleQueue' object has no attribute '_poll'”

2017-05-09 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1613 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30306] release arguments of contextmanager

2017-05-09 Thread Nick Coghlan
Nick Coghlan added the comment: You're right, there's no actual requirement that _recreate_cm() call self.__class__, so it can use a different type internally. -- ___ Python tracker ___

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: I backported test_regrtest from master to 2.7. I removed: * ParseArgsTestCase: regrtest.py of 2.7 has no API to easily write unit tests for argument parsing * test_huntrleaks_fd_leak(): this features doesn't exist in regrtest 2.7 * test_coverage(): regrtest 2.7

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: The coverage job has been fixed and I'm unable to reproduce bpo-15366 bug (my change doesn't seem to have introduced a regression), so I close the issue. I sent an email to python-dev to warn about this change, so maybe others will double check. @Jeremy: plea

[issue15366] venv assumes header files in sys._home + '/Include'

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: I reverted the commit in 2.7, 3.5, 3.6 and master (3.7) branches to fix bpo-30273, but I'm unable to reproduce this bug so it seems like venv and virtualend have been updated in the meanwhile to add ${venv}/include to the include directories. See for example

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset d2aff607199a24182714404777c80c7f180a35af by Victor Stinner in branch '2.7': [2.7] bpo-30283: Backport test_regrtest from master to 2.7 (#1513) https://github.com/python/cpython/commit/d2aff607199a24182714404777c80c7f180a35af --

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: Oh, test_regrtest of Python 3.5 only tests regrtest command line parser, it doesn't contain functional tests. We may also backport functional tests for 3.5. -- versions: +Python 3.5 ___ Python tracker

[issue15366] venv assumes header files in sys._home + '/Include'

2017-05-09 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1615 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-09 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1614 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-09 Thread Jeremy Kloth
Jeremy Kloth added the comment: PR1515 addresses the issue from bpo-15366 (venv from Python compiled with builddir != srcdir). It seems that the original fix from bpo-15366 no longer worked. This addresses that. -- ___ Python tracker

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Louie Lu added the comment: The reason why click on listbox will disappear is because we bind HIDE_VIRTUAL_EVENT with on widget.text. When click on listbox, it will focusOut the widget.text then focusOn listbox, thus trigger the hide process. The reason why click on listbox and move the curs

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue since Jeremy posted a new PR. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue10436] tarfile.extractfile in "r|" stream mode fails with filenames or members from getmembers()

2017-05-09 Thread flying sheep
flying sheep added the comment: well, we should just allow extractall(members=['foo', 'bar']) currently members only accepts TarInfo objects, not filenames, but it’s easy to accept both. https://github.com/python/cpython/blob/74683fc6247c522ae955a6e7308b8ff51def35d8/Lib/tarfile.py#L1991-L1999

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1616 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1617 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-09 Thread Jeremy Kloth
Jeremy Kloth added the comment: Yeah, sorry, I was working (fighting ;) with the new GitHub workflow while you updated the status. -- ___ Python tracker ___

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Louie Lu added the comment: Test PR on MacOS with Tk 5.8.9, when double click on listbox will cause freeze after hide window -- ___ Python tracker ___ __

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: PR 1516 is the real stuff. I would like to enhance regrtest output in 2.7 to be able to debug buildbots stuck somewhere. Example: --- filecmp [398/402] test_setcomps [399/402] test_array [400/402] test_tools [24166 refs] (...) [24167 refs] recursedown('@test_33

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: I chose to not backport "loadavg: 1.73" feature (bpo-30263) in PR 1516. I still consider this feature as experimental, not sure that it's really useful :-) -- ___ Python tracker _

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: test_regrtest failed on "x86 Windows XP VS9.0 2.7" buildbot, but passed on "x86 Windows XP 2.7" buildbot? --- [279/402/1] test_regrtest test test_regrtest failed -- multiple errors occurred; run in verbose mode for details --- http://buildbot.python.org/all/bu

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-09 Thread Tomas Orsava
Changes by Tomas Orsava : -- pull_requests: +1618 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28787] Out of tree --with--dtrace builds fail with a traceback

2017-05-09 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- pull_requests: +1619 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue30313] Tests of Python 2.7 VS9.0 buildbots must be run with -uall -rwW options

2017-05-09 Thread STINNER Victor
New submission from STINNER Victor: After my commit d2aff607199a24182714404777c80c7f180a35af of bpo-30283, test_regrtest failed with "multiple errors occurred; run in verbose mode for details" on "x86 Windows XP VS9.0 2.7" buildbot, but tests are not re-run in verbose mode on this buildbot :-(

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: > The test isn't rerun in verbose mode. Another bug? Yes, I opened bpo-30313. -- ___ Python tracker ___ ___

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03b8a378dfa46372b96790f82c85e9b72518f1bf by Victor Stinner (torsava) in branch '3.6': [3.6] bpo-29243: Fix Makefile with respect to --enable-optimizations (GH-1478) (#1518) https://github.com/python/cpython/commit/03b8a378dfa46372b96790f82c85e9b7

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-09 Thread Tomas Orsava
Changes by Tomas Orsava : -- pull_requests: +1620 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30314] Buildbots: 15 min is too low for test_tools on x86 Tiger 3.6 buildbot

2017-05-09 Thread STINNER Victor
New submission from STINNER Victor: We should give more than 15 min to the "x86 Tiger 3.6" buildbot, since test_tools was killed by the timeout. On the previous build, test_tools took min 25 sec. The global 15 min timeout was designed to detect deadlocks issues, but here it's just that the bu

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 453a6857023a0a2c714772cda8717ecf03de64f5 by Victor Stinner in branch '2.7': bpo-30283: Backport regrtest features from master to 2.7 (#1516) https://github.com/python/cpython/commit/453a6857023a0a2c714772cda8717ecf03de64f5 -- __

[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: I merged a first serie of enhancements for regrtest output in the 2.7 branch. Let's see how things are going, if it helps to debug stuck buildbots. For Python 3.5, I'm less motivated to backport enhancements since Python 3.5 has faulthandler which is used in r

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8489409bbfabb2ddc30ed55c9f4d679a3710ebe4 by Victor Stinner (torsava) in branch '3.5': [3.5] bpo-29243: Fix Makefile with respect to --enable-optimizations (GH-1478) (#1520) https://github.com/python/cpython/commit/8489409bbfabb2ddc30ed55c9f4d679a

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-09 Thread Tomas Orsava
Changes by Tomas Orsava : -- pull_requests: +1621 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: Ok, I reproduced the bug: cd ~/prog/python/master git clean -fdx mkdir ~/build_cpython cd ~/build_cpython/ ~/prog/python/master/configure --with-pydebug --prefix=/home/haypo/prefix make ./python -m venv ~/venv cd ~/venv . bin/activate python -m pip install fat

[issue15366] venv assumes header files in sys._home + '/Include'

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset dbdea629e2e0e4bd8845aa55041e0a0ca4172cf3 by Victor Stinner (Jeremy Kloth) in branch 'master': bpo-30273: update distutils.sysconfig for venv's created from Python (#1515) https://github.com/python/cpython/commit/dbdea629e2e0e4bd8845aa55041e0a0ca41

[issue3839] wsgi.simple_server resets 'Content-Length' header on empty content even if app defined it.

2017-05-09 Thread kxroberto
kxroberto added the comment: However, setting a default "0" when no content, that is still too much in general. In case of a '304 Not Modified' for example (which is probably the most frequent HTTP status used on the web overall!) a Content-Length header obviously is disallowed at all accor

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset dbdea629e2e0e4bd8845aa55041e0a0ca4172cf3 by Victor Stinner (Jeremy Kloth) in branch 'master': bpo-30273: update distutils.sysconfig for venv's created from Python (#1515) https://github.com/python/cpython/commit/dbdea629e2e0e4bd8845aa55041e0a0ca41

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-05-09 Thread Marco Buttu
Marco Buttu added the comment: Looking at Doc/reference/expressions.rst and Doc/reference/datamodel.rst, I do not see any reference to the symbols, but only to the operator name (negation, minus, plus, inversion, etc.). Therefore I think it is better to not change these files. In the PR [*]

[issue30280] Warning -- threading._dangling was modified by test_asyncio on FreeBSD 9 and 10

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: Warning also seen on FreeBSD 10: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/240/steps/test/logs/stdio Warning -- threading._dangling was modified by test_asyncio Before: <_weakrefset.WeakSet object at 0x805f5d810> Af

[issue30315] test_ftplib.TestTLS_FTPClass: "[Errno 54] Connection reset by peer" on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2017-05-09 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%203.x/builds/246/steps/test/logs/stdio test_check_hostname (test.test_ftplib.TestTLS_FTPClass) ... Exception in thread Thread-84: Traceback (most recent call last): File "/usr/home/b

[issue30315] test_ftplib.TestTLS_FTPClass: "[Errno 54] Connection reset by peer" on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2017-05-09 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +buildbot ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30316] test_default_timeout() of test_threading.BarrierTests: random failures on AMD64 FreeBSD CURRENT Debug 3.x

2017-05-09 Thread STINNER Victor
New submission from STINNER Victor: test_default_timeout() of test_threading.BarrierTests randomly fails on AMD64 FreeBSD CURRENT Debug 3.x: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%203.x/builds/246/steps/test/logs/stdio test_default_timeout (test.test_threadi

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please make a review? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot

2017-05-09 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/588/steps/test/logs/stdio 0:49:08 [225/405/1] test_multiprocessing_spawn failed Process Process-59: Traceback (most recent call last): File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7

[issue30318] test_distutils is too verbose on Windows

2017-05-09 Thread STINNER Victor
New submission from STINNER Victor: test_distutils should only dump stdout/stderr on compilation failure, but hide them on success (by default). Example of output: http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/588/steps/test/logs/stdio 0:58:52 [277/405/1] test_distutils

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset a473a73d0cb42c534a3047bbf781b3c592fc33ca by Victor Stinner (torsava) in branch '2.7': [2.7] bpo-29243: Fix Makefile with respect to --enable-optimizations (GH-1478) (#1522) https://github.com/python/cpython/commit/a473a73d0cb42c534a3047bbf781b3c5

[issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: Other similar errors. http://buildbot.python.org/all/builders/x86%20Windows7%203.6/builds/339/steps/test/logs/stdio 1:05:52 [382/405/1] test_multiprocessing_spawn failed -- running: test_mmap (556 sec) Process Process-129: Traceback (most recent call last):

[issue30320] test_eintr.test_sigwaitinfo(): race condition on AMD64 FreeBSD 10.x Shared 3.6

2017-05-09 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.6/builds/129/steps/test/logs/stdio running: test_eintr (584 sec) 0:16:01 [405/405/1] test_eintr failed test_all (test.test_eintr.EINTRTests) ... FAIL =

[issue30319] test_invalid_authentication() of test_imaplib: random failure on AMD64 FreeBSD 9.x 3.6

2017-05-09 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.6/builds/128/steps/test/logs/stdio test_invalid_authentication (test.test_imaplib.NewIMAPSSLTests) ... SENT: b'* OK IMAP4rev1' GOT: b'OMOH0 CAPABILITY' SENT: b'* CAPABILITY IMAP4rev1' SENT: b'O

[issue30318] test_distutils is too verbose on Windows

2017-05-09 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-05-09 Thread Brett Cannon
Brett Cannon added the comment: I've added your PR to my review queue, Serhiy, so I will get to it, I just can't make any promises as to when (hopefully this week). -- ___ Python tracker __

[issue29889] test_asyncio fails always

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: Can someone test again with a development branch? The bpo-29243 has been fixed in 2.7, 3.5, 3.6 and master (3.7) branches thanks to Tomas Orsava! -- nosy: +torsava ___ Python tracker

[issue30230] Move quick test in PyObject_IsSubClass outside of PyType_CheckExact guard

2017-05-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30313] Tests of Python 2.7 VS9.0 buildbots must be run with -uall -rwW options

2017-05-09 Thread Zachary Ware
Zachary Ware added the comment: I think best would be to add a flag to the Tools/buildbot scripts (build and clean as well as test) that is ignored on 3.x and substitutes PC/VS9.0 for PCbuild on 2.7. The buildbot config will need to be updated to pass the flag on the VS9 builders. My first t

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-05-09 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Brett. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: While 8.5.9 on OSX is more usable than 8.5.7, it is known to crash occasionally. Hence the startup warning. See idlelib.macosx.tkVersionWarning and https://www.python.org/download/mac/tcltk/. (The problems listed in the latter for 8.5.9 seems incomplete ;-).

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-05-09 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: https://github.com/google/oss-fuzz/pull/583 is the PR to oss-fuzz to add the project. I'm working on actual tests to be submitted here. -- ___ Python tracker ___

[issue30307] https://docs.python.org/3/tutorial/introduction.html#strings Section 3.1.2 doc issue

2017-05-09 Thread Wolfgang Maier
Wolfgang Maier added the comment: The section is correct as it is. Just try it in the interactive interpreter to convince yourself. -- nosy: +wolma ___ Python tracker ___ __

[issue30307] https://docs.python.org/3/tutorial/introduction.html#strings Section 3.1.2 doc issue

2017-05-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f93234bb8a87855f295d441524e519481ce6ab13 by Serhiy Storchaka in branch 'master': bpo-30024: Circular imports involving absolute imports with binding (#1264) https://github.com/python/cpython/commit/f93234bb8a87855f295d441524e519481ce6ab13

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-05-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue30321] format() function prints fillchar as backslash twice

2017-05-09 Thread PradeepKumar
New submission from PradeepKumar: The output expected is, '\R\' but it shows this. >>> '{:\^3}'.format('R') '\\R\\' >>> -- messages: 293343 nosy: pradeepkr priority: normal severity: normal status: open title: format() function prints fillchar as backslash twice versions: Python 3.6 _

[issue30321] format() function prints fillchar as backslash twice

2017-05-09 Thread Zachary Ware
Zachary Ware added the comment: >>> result = '{:\^3}'.format('R') >>> result '\\R\\' >>> print(result) \R\ >>> print("backslash (\\) is escaped by another backslash in str's repr") backslash (\) is escaped by another backslash in str's repr -- nosy: +zach.ware resolution: -> not a bug s

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Louie Lu added the comment: There is a difference between Linux and Mac freeze. On linux, if freeze and I insert pdb.set_trace() at the end of the hide_window, it will let cursor blink again, while on Mac, this won't work. I try self.widget.after(200, self.hide_window) and it doesn't work, too

[issue30322] PyObject_GetIter does not behave as documented on dict objects

2017-05-09 Thread Sam De Meyer
New submission from Sam De Meyer: According to the docs (https://docs.python.org/3/c-api/object.html) the `PyObject_GetIter` method should be equivalent to the python call `iter()`, but, when given a dict, the `PyObject_GetIter` returns an iterator over key-value pairs whereas the `iter()` met

[issue30322] PyObject_GetIter does not behave as documented on dict objects

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't believe in this since one-argument iter() just calls PyObject_GetIter(). dict.update() accepts either a dict-like object (which should have the keys() method) or an iterable producing key-value pairs. If your dict-like object doesn't work as expected

[issue30285] Optimize case-insensitive regular expressions

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6d336a027913327fc042b0d758a16724fea27b9c by Serhiy Storchaka in branch 'master': bpo-30285: Optimize case-insensitive matching and searching (#1482) https://github.com/python/cpython/commit/6d336a027913327fc042b0d758a16724fea27b9c --

[issue30285] Optimize case-insensitive regular expressions

2017-05-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue30289] make distclean and Misc/python-config.sh

2017-05-09 Thread Дилян Палаузов
Дилян Палаузов added the comment: 3.5 is also affected. -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New test produce deprecation warnings: /home/serhiy/py/cpython/Lib/unittest/test/test_assertions.py:228: DeprecationWarning: invalid escape sequence \( ["^1 != 2 within 7 places \(1 difference\)$", "^oops$", /home/serhiy/py/cpython/Lib/unittest/test/test_as

[issue30165] faulthandler acquires lock from signal handler, can deadlock while crashing

2017-05-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: Follow up note: Note that even with POSIX TLS in use, it isn't entirely safe. pthread_getspecific() as used by the posix thread code is not required to be async signal safe by the POSIX standard. :( The Linux glibc implementation thankfully does not use l

[issue30322] PyObject_GetIter does not behave as documented on dict objects

2017-05-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: This from the help on dict.update(): | update(...) | D.update([E, ]**F) -> None. Update D from dict/iterable E and F. | If E present and has a .keys() method, does: for k in E: D[k] = E[k] | If E present and lacks .keys() method, does

[issue30323] concurrent.futures.Executor.map() consumes all memory when big generators are used

2017-05-09 Thread Klamann
New submission from Klamann: The Executor's map() function accepts a function and an iterable that holds the function arguments for each call to the function that should be made. This iterable could be a generator, and as such it could reference data that won't fit into memory. The behaviour

[issue30165] faulthandler acquires lock from signal handler, can deadlock while crashing

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: > Note that even with POSIX TLS in use, it isn't entirely safe. I wrote faulthandler to collect debug data just before dying, when something already gone very bad, like a deadlock or a memory corruption. I didn't design faulthandler for correctness. If you ca

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would try rebooting, but not having a Mac, I am not familiar with the details of the instructions on that page. It they are not clear enough, they should be improved. -- assignee: -> terry.reedy ___ Python track

[issue30324] Error using newline='' when writing to CSV file

2017-05-09 Thread BeamPower
New submission from BeamPower: I am using the newline='' feature in my program to avoid the extra lines being placed between each line being written to a CSV file. This error is odd though... I used it before on a previous rev, and it worked fine. I think the CSV file writing feature has been a

[issue30324] Error using newline='' when writing to CSV file

2017-05-09 Thread BeamPower
BeamPower added the comment: Sorry, I left out a detail... I am running Python 2.7.13 -- versions: +Python 2.7 ___ Python tracker ___

[issue30324] Error using newline='' when writing to CSV file

2017-05-09 Thread Martin Panter
Martin Panter added the comment: In Python 2, the "open" function doesn't have a "newline" parameter. Perhaps you were looking at the wrong documentation version. -- nosy: +martin.panter resolution: -> not a bug stage: -> resolved status: open -> closed __

[issue30308] Add code coverage for argument in random.shuffle

2017-05-09 Thread Cheryl Sabella
Cheryl Sabella added the comment: OK, I've removed the test for the negative values returned by random. In core-mentorship, David Murray had suggested adding a comment to document it as unexpected behavior. I had asked there because I wasn't quite sure what to do about it. Should I also lea

[issue30308] Add code coverage for argument in random.shuffle

2017-05-09 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've also changed the test to use Mock for the random function. I'm new to mock, so I'm not sure if I did it right. Using a return_value seemed to be the best way to go. I didn't know if it was necessary to test if an incorrect function was sent in. --

[issue30320] test_eintr.test_sigwaitinfo(): race condition on AMD64 FreeBSD 10.x Shared 3.6

2017-05-09 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1622 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30320] test_eintr.test_sigwaitinfo(): race condition on AMD64 FreeBSD 10.x Shared 3.6

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: I checked manually in my FreeBSD CURRENT VM that: * sigwaitinfo() and sigtimedwait() fail with EINTR and automatically restart the interrupted syscall * running the test in a loop doesn't fail: I ran the test during 5 min in 10 shells (tests running 10 times i

[issue30325] Buildbot: send email notifications to buildbot-status@

2017-05-09 Thread STINNER Victor
New submission from STINNER Victor: I created a new mailing list to get email notifications when a buildbot starts failing (state change from green/success to red/failure). It seems like the buildbot config already sends email, but I don't see them in the archives of the python-checkins list?

[issue30325] Buildbot: send email notifications to buildbot-status@

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: On the buildbot server, I see the following code in lib/python/buildbot/status/mail.py: # GB: NEW: add test logfile excerpts if "test" in t: # only if the test went wrong for log in build.getLogs(): if "test" in log.g

[issue30325] Buildbot: send email notifications to buildbot-status@

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: It seems like the code is copied by rsync from a server called dinsdale: https://github.com/python/psf-chef/blob/master/cookbooks/buildmaster.txt#L13 -- ___ Python tracker ___

[issue30325] Buildbot: send email notifications to buildbot-status@

2017-05-09 Thread STINNER Victor
STINNER Victor added the comment: To rebuild the lib/python/buildbot/ directory, you can start from buildbot 0.8.14 and then apply attached buildbot-0.8.14py1.patch diff. -- keywords: +patch Added file: http://bugs.python.org/file46853/buildbot-0.8.14py1.patch _

[issue25652] collections.UserString.__rmod__() raises NameError

2017-05-09 Thread Jonathan Goble
Jonathan Goble added the comment: Any decision on this? I recently played around and found a reasonable use case where UserString.__rmod__ does get called; run the attached userstringerror.py to see it in action. Basically, it seems the idea of UserString is to subclass it, tweak as desired,

  1   2   >