[issue30377] Unnecessary complexity in tokenize.py around handling of comments and newlines

2017-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Don't worry, CLA is accepted manually, and this takes some time. -- ___ Python tracker ___ ___ Pyt

[issue30377] Unnecessary complexity in tokenize.py around handling of comments and newlines

2017-05-16 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: I did yesterday, should be coming through today right? -- ___ Python tracker ___ ___ Python-bugs

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There was other warnings, mostly false positive, but there were also the real documentation bugs. Sphinx now converts quotes to Unicode variants at earlier stage (this is good thing, because converting them at late stage, in HTML, not always worked), and rul

[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-05-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: > (BTW do you happen to know any tricks to force CPython to do an immediate > PyErr_CheckSignals on Windows?) Never mind on this... it looks like calling repr() on any object is sufficient. -- ___ Python tracker <

[issue30377] Unnecessary complexity in tokenize.py around handling of comments and newlines

2017-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is simple change, and I would write the same code, but just for the case could you please sign CLA? -- ___ Python tracker ___ __

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

2017-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you add a Misc/NEWS entry about backported regrtest features? -- ___ Python tracker ___ ___

[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-05-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: > While I suggest you to *not* use an event loop (wakeup fd pipe/socket handle > with select) and signal.signal(), you are true that there is a race condition > if you use select() with signal.signal() so I merged your change. Unfortunately this is the only 1

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

2017-05-16 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for your reply Serhiy. Test added. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue30384] traceback.TracebackException.format shouldn't format_exc_only() when __traceback__ is None

2017-05-16 Thread Aaron Meurer
New submission from Aaron Meurer: I'm trying to completely hide an exception from the traceback module. From reading the source, it looks like the only way to do this is to set __traceback__ to None (I can also set __suppress_context__ to True, but that only works if I have another exception h

[issue19417] Bdb: add a unittest file (test.test_bdb)

2017-05-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: Wondering if it might make sense to use Mock in this patch? -- ___ Python tracker ___ ___ Python-bug

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

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

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

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

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

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 460945f22acd288e660b432b288d9d81655572bf by Victor Stinner in branch '3.6': bpo-30273: update distutils.sysconfig for venv's created from Python (#1515) (#1625) https://github.com/python/cpython/commit/460945f22acd288e660b432b288d9d81655572bf -

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

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 460945f22acd288e660b432b288d9d81655572bf by Victor Stinner in branch '3.6': bpo-30273: update distutils.sysconfig for venv's created from Python (#1515) (#1625) https://github.com/python/cpython/commit/460945f22acd288e660b432b288d9d81655572bf -

[issue30211] Bdb: add docstrings

2017-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I still need to push a News Entry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue30329] poplib and imaplib should catch "OSError: [WinError 10022] An invalid argument was supplied" on shutdown

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 800e4b7ad6b6f86c17408429852dfb47493d366e by Victor Stinner in branch '2.7': bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1624) https://github.com/python/cpython/commit/800e4b7ad6b6f86c17408429852dfb47493d366e --

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

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 now has test_regrtest and test_regrtest pass on all 2.7 buildbots, so I close the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker

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

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

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

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

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

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

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

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

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

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 now has a nice test_regrtest and its regrtest now has many new features backported from master. test_regrtest pass on all 2.7 buildbots, I close the issue. I created bpo-30383 to backport regrtest enhancements to Python 3.5. -- resolution:

[issue30383] [3.5] Backport regrtest features from master to Python 3.5

2017-05-16 Thread STINNER Victor
New submission from STINNER Victor: bpo-30283 backported regrtest features from master to Python 2.7. I now propose to do the same for Python 3.5, as suggested by Serhiy Storshaka. -- components: Tests messages: 293827 nosy: haypo priority: normal severity: normal status: open title: [3

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

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: Email notifications is now working properly, I close the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker _

[issue30329] poplib and imaplib should catch "OSError: [WinError 10022] An invalid argument was supplied" on shutdown

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

[issue30357] test_thread should clean threads after each test

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: Backported to 3.5 (aeb644714d37fb974e3acdf7daef031461e1283f) and 3.6 (6b5b85aecf4db796a05582202a6c875b36eae516). I now close the issue, I consider that the change should fix the randomly failing test. If the failure comes back, I will reopen the issue. Thank

[issue30357] test_thread should clean threads after each test

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

[issue30357] test_thread should clean threads after each test

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

[issue30357] test_thread should clean threads after each test

2017-05-16 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: -1712 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30357] test_thread should clean threads after each test

2017-05-16 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: -1712 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30328] test_ssl.test_connect_with_context(): ConnectionResetError on AMD64 FreeBSD 9.x 3.6

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: SimpleBackgroundTests uses a server running in a different thread, so running locally. The port is binded by support.bind_port(socket, "127.0.0.1"). -- ___ Python tracker

[issue30371] test_long_lines() fails randomly on AMD64 Windows7 SP1 3.x

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-20118: test_linetoolong() of test_imaplib is skipped "temporarily" on Python 2.7 since 2014 :-) -- ___ Python tracker ___

[issue30357] test_thread should clean threads after each test

2017-05-16 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_thread.test_save_exception_state_on_error(): Unhandled exception in thread: AMD64 Debian root 2.7 -> test_thread should clean threads after each test ___ Python tracker

[issue30357] test_thread.test_save_exception_state_on_error(): Unhandled exception in thread: AMD64 Debian root 2.7

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

[issue30357] test_thread.test_save_exception_state_on_error(): Unhandled exception in thread: AMD64 Debian root 2.7

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

[issue30382] test_stdin_broken_pipe() of test_asyncio failed randomly on AMD64 FreeBSD CURRENT Non-Debug 3.x

2017-05-16 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.x/builds/279/steps/test/logs/stdio == FAIL: test_stdin_broken_pipe (test.test_asyncio.test_subprocess.Subproc

[issue30371] test_long_lines() fails randomly on AMD64 Windows7 SP1 3.x

2017-05-16 Thread Jeremy Kloth
Jeremy Kloth added the comment: That's the real problem, I'm not *sure* it's the memory, but it does have the symptoms. And that is why my buildbot was down earlier, I was attempting to determine the bad stick and replace it. I'm just hoping I changed the right one. That is why I brought up

[issue29137] Fix fpectl-induced ABI breakage

2017-05-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: Another option you might want to consider is proposing to add a proper fpu control flag setting/checking API to the math module. -- ___ Python tracker ___

[issue29137] Fix fpectl-induced ABI breakage

2017-05-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: Also fixing the abi issues that started this, and probably making an argument for why it makes sense for all of cpython's built-in float operations to check the fpu flags, and to do so using a weird longjmp-based mechanism that only some platforms support. Th

[issue30329] poplib and imaplib should catch "OSError: [WinError 10022] An invalid argument was supplied" on shutdown

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset c9ba45d1b71d86321e5422e8a2cbe6e52aaba6f4 by Victor Stinner in branch '3.5': bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1621) https://github.com/python/cpython/commit/c9ba45d1b71d86321e5422e8a2cbe6e52aaba6f4 --

[issue30371] test_long_lines() fails randomly on AMD64 Windows7 SP1 3.x

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: If you are sure that your memory has issues, don't test it, just change it. I had memory issues once but memtest86 was quick to prove memory errors in my case. I changed the memory for free since it was still under the warranty. -- ___

[issue29137] Fix fpectl-induced ABI breakage

2017-05-16 Thread Dima Pasechnik
Dima Pasechnik added the comment: @njs: Fixing this entails switching over from ieeefp to fenv, right? Looks doable, although not trivial. It might potentially be useful for various numerics, IMHO. -- ___ Python tracker

[issue30371] test_long_lines() fails randomly on AMD64 Windows7 SP1 3.x

2017-05-16 Thread Jeremy Kloth
Jeremy Kloth added the comment: My thinking is that in normal running, the in-use memory is below the bad bit. It is due to that test using such a large chunk of memory that it pushes the data into the bad area. I would wager that if largemem tests were run, the would error as well. ---

[issue30329] poplib and imaplib should catch "OSError: [WinError 10022] An invalid argument was supplied" on shutdown

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset aaa053652556aa4e59cb68f3983a09ced1d1fe2a by Victor Stinner in branch '3.6': bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1620) https://github.com/python/cpython/commit/aaa053652556aa4e59cb68f3983a09ced1d1fe2a --

[issue30211] Bdb: add docstrings

2017-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0774e79b93cc494b3a957d538c7c112e289973c0 by terryjreedy (csabella) in branch 'master': bpo-30211: bdb: add docstrings (#1350) https://github.com/python/cpython/commit/0774e79b93cc494b3a957d538c7c112e289973c0 -- _

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b8b9f95f660d00ce9bd11bd9de429176858be3c5 by Serhiy Storchaka in branch '2.7': [2.7] bpo-30380: Fix Sphinx 1.6.1 warnings. (GH-1613) (#1616) https://github.com/python/cpython/commit/b8b9f95f660d00ce9bd11bd9de429176858be3c5 -- _

[issue30371] test_long_lines() fails randomly on AMD64 Windows7 SP1 3.x

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: > Watch this space, but I'm pretty sure that it is (was) bad memory. It's really strange that only one very specific Python test fails if it's a bad memory issue? -- ___ Python tracker

[issue30333] test_multiprocessing_forkserver: poll() failed on AMD64 FreeBSD CURRENT Non-Debug 3.5

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: Other test_multiprocessing_forkserver errors on AMD64 FreeBSD CURRENT Non-Debug 3.6. http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.6/builds/150/steps/test/logs/stdio (...) test_import (test.test_multiprocessing_forkserver._T

[issue30371] test_long_lines() fails randomly on AMD64 Windows7 SP1 3.x

2017-05-16 Thread Jeremy Kloth
Jeremy Kloth added the comment: Watch this space, but I'm pretty sure that it is (was) bad memory. It passes memtest86+ but I had issues with these kits in other machines. I swapped out the stick I believe that had the stuck bit. Unfortunately, it is a wait and see solution, as they do pas

[issue30381] test_smtpnet.test_connect_using_sslcontext_verified() randomly failed with "smtplib.SMTPServerDisconnected: Connection unexpectedly closed" on AMD64 FreeBSD CURRENT Debug 3.x

2017-05-16 Thread STINNER Victor
New submission from STINNER Victor: See also bpo-30331 (test_poplib) and bpo-30328 (test_ssl): other connection reset on the FreeBSD buildbots. http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%203.x/builds/272/steps/test/logs/stdio 0:15:55 load avg: 1.77 [387/405/1] te

[issue30339] test_multiprocessing_main_handling: "RuntimeError: Timed out waiting for results" on x86 Windows7 3.x

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 7d6320ba47a229543acc0af6a64bc4e414932273 by Victor Stinner in > branch 'master': > bpo-30339: test_multiprocessing_main_handling timeout (#1593) > https://github.com/python/cpython/commit/7d6320ba47a229543acc0af6a64bc4e414932273 Sadly, a new bui

[issue30329] poplib and imaplib should catch "OSError: [WinError 10022] An invalid argument was supplied" on shutdown

2017-05-16 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Library (Lib) title: test_imaplib.test_login_cram_md5(): OSError: [WinError 10022] An invalid argument was supplied on AMD64 Windows8.1 Non-Debug 3.6 -> poplib and imaplib should catch "OSError: [WinError 10022] An invalid argument was suppli

[issue29137] Fix fpectl-induced ABI breakage

2017-05-16 Thread Nathaniel Smith
Nathaniel Smith added the comment: @Dima: are you volunteering to fix and maintain it? I can see why it's useful to have some way to get at the fpu flags, but I don't see how fpectl specifically helps with that issue, and fpectl has always been broken on x86-64. -- ___

[issue30329] test_imaplib.test_login_cram_md5(): OSError: [WinError 10022] An invalid argument was supplied on AMD64 Windows8.1 Non-Debug 3.6

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

[issue30329] test_imaplib.test_login_cram_md5(): OSError: [WinError 10022] An invalid argument was supplied on AMD64 Windows8.1 Non-Debug 3.6

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

[issue30371] test_long_lines() fails randomly on AMD64 Windows7 SP1 3.x

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: New fail, same buildbot: == FAIL: test_long_lines (test.test_email.test_email.TestFeedParsers) -- Traceback (most recent call

[issue30181] Correct the parsing of a test case docstring.

2017-05-16 Thread R. David Murray
R. David Murray added the comment: It's not the PSF, it's the dev team, and it is "just" a matter of tooling. Which means help improving the tooling is welcome :) -- ___ Python tracker ___

[issue29137] Fix fpectl-induced ABI breakage

2017-05-16 Thread Dima Pasechnik
Dima Pasechnik added the comment: While fpectl might be a bit rusty, this is a priceless tool in debugging situations, where one needs to identify components that do something wrong to FPU, see e.g. https://github.com/numpy/numpy/issues/9007 and the related https://trac.sagemath.org/ticket/2279

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Brett Cannon added the comment: All branches should be green again. Serhiy has a PR out to fix 2.7 for Sphinx 1.6.1, but it isn't passing yet so that branch is pinned to 1.5.6 until then. I will leave this issue open for Serhiy to close once his 2.7 PR is merged. -- __

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Brett Cannon added the comment: New changeset 97eb2a7d77011605e8fc49e754cd371ead4366bc by Brett Cannon in branch '2.7': [2.7] bpo-30380: Pin the version of Sphinx used to build the docs (GH-1612) (GH-1619) https://github.com/python/cpython/commit/97eb2a7d77011605e8fc49e754cd371ead4366bc

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Brett Cannon added the comment: New changeset 77606957e71ce477d2c5569718f0fc36f05c6f59 by Brett Cannon in branch '3.5': bpo-30380: Pin the version of Sphinx used to build the documentation (GH-1612) (GH-1618) https://github.com/python/cpython/commit/77606957e71ce477d2c5569718f0fc36f05c6f59 -

[issue25324] Importing tokenize modifies token

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: > lib2to3 appears to have it's own token.py as well with NL and COMMENT > withtout ENCODING... Oh you are right: Lib/lib2to3/pgen2/driver.py uses Lib/lib2to3/pgen2/token.py. -- ___ Python tracker

[issue29898] PYTHONLEGACYWINDOWSIOENCODING isn't implemented

2017-05-16 Thread Berker Peksag
Berker Peksag added the comment: New changeset 0d267041c40a3ab655676b885c0ba35ed9685848 by Berker Peksag in branch '3.6': bpo-29898: Fix incorrect env variable name (GH-1576) https://github.com/python/cpython/commit/0d267041c40a3ab655676b885c0ba35ed9685848 --

[issue29898] PYTHONLEGACYWINDOWSIOENCODING isn't implemented

2017-05-16 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___ _

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Brett Cannon added the comment: New changeset 083f13e34c0b9f9ed4ed64fed3989d4af97843b3 by Brett Cannon (Serhiy Storchaka) in branch '3.5': [3.5] bpo-30380: Fix Sphinx 1.6.1 warnings. (GH-1613) (GH-1615) https://github.com/python/cpython/commit/083f13e34c0b9f9ed4ed64fed3989d4af97843b3

[issue25324] Importing tokenize modifies token

2017-05-16 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: lib2to3 appears to have it's own token.py as well with NL and COMMENT withtout ENCODING... Lib/lib2to3/pgen2/token.py -- ___ Python tracker _

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Brett Cannon added the comment: New changeset 5e2016dce92d66e6e1fb25e6ce39031d8c7d5412 by Brett Cannon in branch '3.6': bpo-30380: Pin the version of Sphinx used to build the docs (GH-1612) (GH-1617) https://github.com/python/cpython/commit/5e2016dce92d66e6e1fb25e6ce39031d8c7d5412 --

[issue18299] Change script_helper to use universal_newlines=True in _assert_python

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: > Even if there turn out to be a few uses where having bytes is required, it > would probably be worth catering to the common case and making those > exceptional cases use Popen directly. (Or alternatively provide > assert_python_xxx_binary helpers.) I would

[issue25324] Importing tokenize modifies token

2017-05-16 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: > I prefer to add tokenize tokens directly in Lib/token.py, and then get > COMMENT, NL and ENCODING using tok_name.index(). That would make more sense from a breaking change perspective, but we would step on the toes of anyone adding `COMMENT`, `NL`, or `E

[issue18299] Change script_helper to use universal_newlines=True in _assert_python

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: I really hate script_helper API: keyword arguments are only used to pass environment variables, so the function uses hackish parameteres like __cleanenv=True... I would prefer to pass keywords unchanged to Popen() to be able to use universal_newlines=True for

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +1708 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: While I suggest you to *not* use an event loop (wakeup fd pipe/socket handle with select) and signal.signal(), you are true that there is a race condition if you use select() with signal.signal() so I merged your change. Do you consider that it's worth it to b

[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4ae01496971624c75080431806ed1c08e00f22c7 by Victor Stinner (Nathaniel J. Smith) in branch 'master': bpo-30038: fix race condition in signal delivery + wakeup fd (#1082) https://github.com/python/cpython/commit/4ae01496971624c75080431806ed1c08e00f2

[issue25324] Importing tokenize modifies token

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: Another example from Tools/i18n/pygettext.py, TokenEater:: def __call__(self, ttype, tstring, stup, etup, line): # dispatch ##import token ##print >> sys.stderr, 'ttype:', token.tok_name[ttype], \ ## 'tstring:', tstring

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8fc1ff51adb52c80f6bf78393413c72543bae3e1 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30380: Fix Sphinx 1.6.1 warnings. (GH-1613) (#1614) https://github.com/python/cpython/commit/8fc1ff51adb52c80f6bf78393413c72543bae3e1 -- _

[issue25324] Importing tokenize modifies token

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: Extract of Lib/lib2to3/pgen2/driver.py: if type in (tokenize.COMMENT, tokenize.NL): ... if debug: self.logger.debug("%s %r (prefix=%r)", token.tok_name[type], value, prefix) The code uses tokenize.COMMENT and lo

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +1707 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25324] Importing tokenize modifies token

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: > I would fix this by making tokenize.tok_name a copy. It looks like this > behaviour dates back to 1997 (see revision 1efc4273fdb7). token.tok_name is part of the Python public API: https://docs.python.org/dev/library/token.html#token.tok_name whereas tokeniz

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +1706 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue9850] obsolete macpath module dangerously broken and should be removed

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: Ok, I don't see any open task anymore, so I close this issue. The macpath may or may not be removed in Python 3.8, so not before 2018-01-29. IMHO it's ok to remove the module, macpath was used for MacOS 9, but all macOS users are now running macOS X. Otherwise

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-05-16 Thread Zachary Ware
Zachary Ware added the comment: The simple fix from my point of view is for Jeremy to install Perl :). But since he also mentioned having a patch ready in bpo-30350, I'd like to see it before declaring that installing Perl is what should be done. -- assignee: christian.heimes -> ___

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Brett Cannon added the comment: New changeset fca224f117d25bdfec1bf7160b67438c4fcf6dee by Brett Cannon (Mariatta) in branch 'master': bpo-30380: Pin the version of Sphinx used to build the documentation (GH-1612) https://github.com/python/cpython/commit/fca224f117d25bdfec1bf7160b67438c4fcf6dee

[issue30211] Bdb: add docstrings

2017-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I plan to merge when I can. Possible future improvements for bdb.py. 1. Bdb attributes. 2. Say what user_xyz functions might do. Anything better than 'Intervene in debugging process.'? 3. Clarify what get_stack does. Improvement for bdb.rst (optional for thi

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-05-16 Thread STINNER Victor
STINNER Victor added the comment: I don't really care if Jeremy installs Perl on the buildbot or if someone succeed to fix the dependency on the svn repository. I only care of seeing a green buildbot ;-) -- ___ Python tracker

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-05-16 Thread Kirk Sayre
Kirk Sayre added the comment: I've been fighting with this issue today trying to import networkx in the embedded Python shipped with IDA-Pro. I have implemented a local fix to pgen.py that allows networkx to import and be used in IDAPython scripts. I added a check to see if a .zip archive appe

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1705 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1704 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1703 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d97b7dc94b19063f0589d401bdc4aaadc7030762 by Serhiy Storchaka in branch 'master': bpo-30380: Fix Sphinx 1.6.1 warnings. (#1613) https://github.com/python/cpython/commit/d97b7dc94b19063f0589d401bdc4aaadc7030762 -- __

[issue18233] SSLSocket.getpeercertchain()

2017-05-16 Thread joernheissler
joernheissler added the comment: Hi, I'd like to see this feature too. My use case is a monitoring script to check the life time of the server certificate, including the chain. I would prefer to have a wrapper around SSL_get_peer_cert_chain. I understand that this is *not* a verified chain. Th

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 1613 tries to fix a warning by using explicit footnote numbering. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1702 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> patch review versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1701 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
Brett Cannon added the comment: Technically it's probably best to do `python3 -m pip install sphinx~=1.5.6` so bugfix releases are picked up. -- ___ Python tracker ___ _

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-16 Thread Brett Cannon
New submission from Brett Cannon: The Travis file uses `make venv` which does `python3 -m pip install --upgrade sphinx` which is pulling in Sphinx 1.6.1 which was released today (under Python 2.7 the pip call is direct instead of using `make venv`). The problem is that Sphinx 1.6.1 adds some n

[issue30378] SysLogHandler does not support IPv6 destinations

2017-05-16 Thread Calvin Cheng
Changes by Calvin Cheng : -- nosy: +calcheng -Calvin Cheng ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue30378] SysLogHandler does not support IPv6 destinations

2017-05-16 Thread Calvin Cheng
Changes by Calvin Cheng : -- nosy: +Calvin Cheng -calcheng ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2017-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. But can you convert the reproducer to a test? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue30372] Status of __builtins__ is not totally clear

2017-05-16 Thread Brett Cannon
Brett Cannon added the comment: You're correct that both are CPython implementation details and could be more clearly marked as such. (In case anyone is curious, the code to look up __import__() can be found at https://github.com/python/cpython/blob/c7ac7280c321b3c1679fe5f657a6be0f86adf173/Pyt

  1   2   >