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

2017-05-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Will deeply grokking this code, I would say to leave it alone. The test seems reasonable and is very fast (likely free of cost on many machines). -- nosy: +georg.brandl, pitrou priority: normal -> low ___ Python

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

2017-05-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unless there are objections, I think the wisest course is to remove __rmod__ entirely (refuse the temptation to guess at what the user would expect the semantics to be). -- ___ Python tracker

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

2017-05-09 Thread Xiang Zhang
Xiang Zhang added the comment: So now we have to run make if we want to trigger the profile procedure since other make commands like make test won't trigger the procedure by itself, right? -- ___ Python tracker

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

2017-05-09 Thread Louie Lu
Louie Lu added the comment: @Terry, this is another too-fast-to-destroy problem. The latest PR commit has fixed the issue on MacOS. When we double click on autocompletewindow, it will try to focusOut autocompletewindow then focusOn widget.text, but, we destroy too fast, after destroy, tk

[issue30298] Weak deprecations for inline regular expression modifiers

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Raymond. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30298] Weak deprecations for inline regular expression modifiers

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 418d60a52579b6847776db3e354a8660b26dc752 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30298: Weaken the condition of deprecation warnings for inline modifiers. (GH-1490) (#1525)

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

2017-05-09 Thread Louie Lu
Louie Lu added the comment: The step after installing newer Tk will require `make clean` and `make` again to let linker link to the recent install version. I can freeze the cursor after double click on any version of Tk I install, 8.5.9 / 8.5.18 / 8.6.4 on MacOS Sierra. Maybe we should

[issue30298] Weak deprecations for inline regular expression modifiers

2017-05-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1624 ___ Python tracker ___ ___

[issue30298] Weak deprecations for inline regular expression modifiers

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 305ccbe27ea5ba82fd2d8c32ec739f980e524330 by Serhiy Storchaka in branch 'master': bpo-30298: Weaken the condition of deprecation warnings for inline modifiers. (#1490)

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

2017-05-09 Thread Xiang Zhang
Xiang Zhang added the comment: I know, but this is not a bug. So I only want to backport it to 3.6. -- versions: -Python 3.5 ___ Python tracker ___

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

2017-05-09 Thread Martin Panter
Martin Panter added the comment: On Python 2, I'm guessing you are getting extra CRs on Windows? It looks like you have to open in binary mode there to avoid newline translation. This is documented for the "reader" and "writer" functions. -- ___

[issue30310] tkFont.py assumes that all font families are encoded as ascii in Python 2.7

2017-05-09 Thread Marc Culler
Marc Culler added the comment: The attached patch simply decodes string options to the Font._set() method using the utf8 codec. Other options (which will be numbers) are converted to ascii strings as currently happens. This makes it possible to use the Font.copy() method without raising an

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

2017-05-09 Thread BeamPower
BeamPower added the comment: Sorry, my mistake. I thought I was running Python 2.7, but I was running Python 3.1. By the way, is there a solution to the extra lines being written to a CSV file using Python 2.7? Thank you. -- ___ Python tracker

[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: +1623 ___ Python tracker ___ ___

[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: New changeset 211a392cc15f9a7b1b8ce65d8f6c9f8237d1b77f by Victor Stinner in branch 'master': bpo-30320: test_eintr now uses pthread_sigmask() (#1523) https://github.com/python/cpython/commit/211a392cc15f9a7b1b8ce65d8f6c9f8237d1b77f --

[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,

[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

[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: 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

[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?

[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

[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 ___ ___

[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.

[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

[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

[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 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

[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

[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

[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

[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,

[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

[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$",

[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 ___ ___

[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

[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 --

[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

[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()`

[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,

[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

[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

[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

[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

[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 ___

[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

[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

[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

[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

[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

[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

[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 ___ ___

[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

[issue30318] test_distutils is too verbose on Windows

2017-05-09 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___

[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:

[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

[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)

[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

[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

[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 ___ ___

[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

[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 ___ ___

[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

[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>

[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 [*]

[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)

[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

[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)

[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

[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 ___ ___

[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)

[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

[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 --

[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

[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 ___ ___

[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)

[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 ___

[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

[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 ___ ___

[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 ___ ___

[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 ---

[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: 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]

[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 ___

[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
Changes by Louie Lu : -- pull_requests: +1617 ___ Python tracker ___ ___ Python-bugs-list

[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 ___ ___

[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.

[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 ___

[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

[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

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

2017-05-09 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1615 ___ Python tracker ___

[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 ___

[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

[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 --

[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

[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:

[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

[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

  1   2   >