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

[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

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

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

[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

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

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

[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

[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

[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

[issue21261] Teach IDLE to Autocomplete dictionary keys

2017-05-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Would it be safer/simpler to just autocomplete string keys. -- ___ Python tracker ___

[issue30311] random.shuffle pointlessly shuffles dicts

2017-05-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Tim. These are just duck-typing facts of life. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

2017-05-09 Thread Steve Barnes
Steve Barnes added the comment: CLA Now showing on profile. Minor change to help message, (Defaults to matching 64 bit installation), pushed to hopefully auto-update the CLA flag. -- ___ Python tracker

[issue30297] Recursive starmap causes Segmentation fault

2017-05-09 Thread Sebastian Noack
Sebastian Noack added the comment: Thanks for your response, both of you. All you said, make sense. Just for the record, I wouldn't necessarily expect 200k nested iterators to work. Even if it could be made work, I guess it would use way too much memory. But a RuntimeError would be much

[issue21261] Teach IDLE to Autocomplete dictionary keys

2017-05-09 Thread Louie Lu
Louie Lu added the comment: In this PR, it will complete dictionary key with string, int, and others. for example: d = {'long_key': 10, 'short_key': 20, 30: 40, (((1, 2), 3, 4), 5): 50} d['lo -> d['long_key' d[(((1 -> d[(((1, 2), 3, 4), 5) d[3-> d[30 The problem is,

[issue24932] Use proper command line parsing in _testembed

2017-05-09 Thread Nick Coghlan
Nick Coghlan added the comment: Based on the latest round of PEP 538 review, the related test case that currently relies on _testembed is going to be able to be simplified to just setting LC_ALL=C when calling the subprocess (the amount of code it's letting me delete from the draft patch is

[issue21261] Teach IDLE to Autocomplete dictionary keys

2017-05-09 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1612 ___ Python tracker ___ ___ Python-bugs-list

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

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

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

[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

[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

[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

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

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

[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

[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

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

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

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

[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

[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

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

2017-05-09 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

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

[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

[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

[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

[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

[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

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

[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

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

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

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

[issue30298] Weak deprecations for inline regular expression modifiers

2017-05-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1624 ___ 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 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
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)

[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

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

[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

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

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

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

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

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

[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

[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

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

[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

[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

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

[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

[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

[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

[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

[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

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

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

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

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

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

[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

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

[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

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

[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

[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

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

[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

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

  1   2   >