[issue28411] Eliminate PyInterpreterState.modules.

2017-09-13 Thread Eric Snow
Eric Snow added the comment: New changeset 93c92f7d1dbb6e7e472f1d0444c6968858113de2 by Eric Snow in branch 'master': bpo-31404: Revert "remove modules from Py_InterpreterState (#1638)" (#3565) https://github.com/python/cpython/commit/93c92f7d1dbb6e7e472f1d0444c6968858113de2 -- __

[issue31418] assertion failure in PyErr_WriteUnraisable() in case of an exception with a bad __module__

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

[issue31404] undefined behavior and crashes in case of a bad sys.modules

2017-09-13 Thread Eric Snow
Eric Snow added the comment: New changeset 93c92f7d1dbb6e7e472f1d0444c6968858113de2 by Eric Snow in branch 'master': bpo-31404: Revert "remove modules from Py_InterpreterState (#1638)" (#3565) https://github.com/python/cpython/commit/93c92f7d1dbb6e7e472f1d0444c6968858113de2 -- __

[issue31463] test_multiprocessing_fork hangs test_subprocess

2017-09-13 Thread Benjamin Peterson
New submission from Benjamin Peterson: This hangs reliably for me on master: $ ./python -m test.regrtest test_multiprocessing_fork test_subprocess It looks like test_multiprocessing_fork doesn't clean up some of its subprocesses and then test_subprocess hangs on waitpid(0) forever. --

[issue31462] Remove trailing whitespaces

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

[issue31447] proc communicate not exiting on python subprocess timeout using PIPES

2017-09-13 Thread Leonardo Francalanci
Leonardo Francalanci added the comment: I have a workaround, and I guess this means there's a bug in the current implementation of stdout/stderr=subprocess.PIPE; if I open my own pipes instead of using subprocess.PIPE everything seems to work (provided I close the pipe before reading from it):

[issue31418] assertion failure in PyErr_WriteUnraisable() in case of an exception with a bad __module__

2017-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5dbb28ececdd0382d85b164aaf37bec1ae08036c by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31418: Fix an assertion failure in PyErr_WriteUnraisable() in case of an exception with a bad __module__ attribute. (GH-3539) (#3556)

[issue31462] Remove trailing whitespaces

2017-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 13ad3b7a82bf56d803fbe48ee5df6c4b08986c78 by Serhiy Storchaka in branch 'master': bpo-31462: Remove trailing whitespaces. (#3564) https://github.com/python/cpython/commit/13ad3b7a82bf56d803fbe48ee5df6c4b08986c78 --

[issue31441] Descriptor example in documentation is confusing, possibly wrong

2017-09-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: The example should be modernized to show-off the new __set_name__() part of the descriptor protocol. Computing the name on-demand is better that relying an optional user entered alternate name and having to store that name for future reference. --

[issue28411] Eliminate PyInterpreterState.modules.

2017-09-13 Thread Eric Snow
Eric Snow added the comment: We're reverting this (see #31404), so back to the drawing board... -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___

[issue31404] undefined behavior and crashes in case of a bad sys.modules

2017-09-13 Thread Eric Snow
Changes by Eric Snow : -- keywords: +patch pull_requests: +3554 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue28411] Eliminate PyInterpreterState.modules.

2017-09-13 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +3555 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue31462] Remove trailing whitespaces

2017-09-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3553 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue31462] Remove trailing whitespaces

2017-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed PR removes trailing whitespaces from CPython source files. Some of them were added since the last trailing whitespaces removing. Some text files were omitted in previous trailing whitespaces removings. Now I consider them safe to cleanup. ---

[issue19985] Not so correct error message when initializing Struct with ill argument

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- versions: +Python 3.6, Python 3.7 -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mai

[issue19985] Not so correct error message when initializing Struct with ill argument

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- dependencies: +fix several error messages in struct -Document whether it's safe to use bytes for struct format string resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker ___ __

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset fa82dda1012b406a7091587fc65384ce11528346 by Xiang Zhang in branch '3.6': [3.6] bpo-30246: fix several error messages which only mention bytes in struct (#3561) https://github.com/python/cpython/commit/fa82dda1012b406a7091587fc65384ce11528346 -

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- keywords: +patch pull_requests: +3552 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue31458] Broken link to Misc/NEWS in What's New page

2017-09-13 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue31458] Broken link to Misc/NEWS in What's New page

2017-09-13 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 905e4ef86e86dbf8f28b2f6e45af31a6eea84e10 by Mariatta in branch '3.6': [3.6] bpo-31458: Update Misc/NEWS link in What's New page (GH-3555) (GH-3560) https://github.com/python/cpython/commit/905e4ef86e86dbf8f28b2f6e45af31a6eea84e10 -- __

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset c3e97d9d984130d1c2aceedc4dfcd603b3162688 by Xiang Zhang in branch 'master': bpo-30246: fix several error messages which only mention bytes in struct (#1421) https://github.com/python/cpython/commit/c3e97d9d984130d1c2aceedc4dfcd603b3162688 -

[issue31438] IDLE 3 crashes and quits when caret character typed

2017-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: If your installed Python with the 64/32 Mac installer from python.org, follow the instruction, on the link given, to install Active 8.5.18 and *not* 8.6. I believe the issue is that the _tkinter binary is compiled to work with 8.5, not 8.6. If you used any o

[issue31458] Broken link to Misc/NEWS in What's New page

2017-09-13 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +3551 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31461] IDLE: Enhance class browser

2017-09-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +csabella ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue31438] IDLE 3 crashes and quits when caret character typed

2017-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, is 3.6.2 tkinter on Mac supposed to work with tcl/tk 8.6.6? -- ___ Python tracker ___ ___ Pyth

[issue28556] typing.py upgrades

2017-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9e3cd78ec18b2d2078d30b04307916acd68be37a by Łukasz Langa (Miss Islington (bot)) in branch '3.6': [3.6] bpo-28556: Minor updates to typing module (GH-3550) (#3558) https://github.com/python/cpython/commit/9e3cd78ec18b2d2078d30b04307916acd68be37a --

[issue31458] Broken link to Misc/NEWS in What's New page

2017-09-13 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 1b8f612e1800b6e58472113f4abe8ee7c31f4db7 by Mariatta in branch 'master': bpo-31458: Update Misc/NEWS link in What's New page (GH-3555) https://github.com/python/cpython/commit/1b8f612e1800b6e58472113f4abe8ee7c31f4db7 -- ___

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 096ae3373abac2c8b3a26a3fe33cc8bd4cbccd4e by Victor Stinner in branch 'master': bpo-31234: Try to fix lock_tests warning (#3557) https://github.com/python/cpython/commit/096ae3373abac2c8b3a26a3fe33cc8bd4cbccd4e -- ___

[issue28556] typing.py upgrades

2017-09-13 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3550 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28556] typing.py upgrades

2017-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 65bc62052fe5d550cb14c0033e8a2550618fb7b9 by Łukasz Langa (Ivan Levkivskyi) in branch 'master': bpo-28556: Minor updates to typing module (#3550) https://github.com/python/cpython/commit/65bc62052fe5d550cb14c0033e8a2550618fb7b9 -- nosy: +lu

[issue31447] proc communicate not exiting on python subprocess timeout using PIPES

2017-09-13 Thread Eryk Sun
Eryk Sun added the comment: > the process terminates, but "communicate" doesn't exit. It doesn't > say "communicate will hang as long as the pipes are open". I think the problem with leaked handles does warrant a note. It can be a difficult problem to diagnose otherwise. If communicate() rais

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3549 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset ef323e8d82b07d4e7e4303c360dc32d3de0b3147 by Victor Stinner in branch '3.6': [3.6] bpo-31234: Fix dangling thread in test_ftp/poplib (#3554) https://github.com/python/cpython/commit/ef323e8d82b07d4e7e4303c360dc32d3de0b3147 -- ___

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset d99e85b9f6422dd5e4f2eb1539368fc4003d4c8b by Victor Stinner (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31234, socket.create_connection(): Fix ref cycle (GH-3546) (#3552) https://github.com/python/cpython/commit/d99e85b9f6422dd5e4f2eb1539368f

[issue28411] Eliminate PyInterpreterState.modules.

2017-09-13 Thread Eric Snow
Eric Snow added the comment: FYI, this broke some (very) corner cases. See issue #31404. -- ___ Python tracker ___ ___ Python-bugs-l

[issue31418] assertion failure in PyErr_WriteUnraisable() in case of an exception with a bad __module__

2017-09-13 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3548 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31418] assertion failure in PyErr_WriteUnraisable() in case of an exception with a bad __module__

2017-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f6e61df01536493f1280cd07639c7ff9bffb2cdc by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31418: Fix an assertion failure in PyErr_WriteUnraisable() in case of an exception with a bad __module__ attribute. (#3539) https://github.com/py

[issue31418] assertion failure in PyErr_WriteUnraisable() in case of an exception with a bad __module__

2017-09-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30442] Skip test_xml_etree under coverage

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 860839cc8e0a4a0890418f77c984955697f96828 by Victor Stinner (Miss Islington (bot)) in branch '2.7': [2.7] bpo-30442: Skips refcount test in test_xml_etree under coverage (GH-1767) (#3549) https://github.com/python/cpython/commit/860839cc8e0a4a0890

[issue31461] IDLE: Enhance class browser

2017-09-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +Class Browser doesn't show internal classes, IDLE: Remane Class Browser as Module Browser, IDLE: Revise ModuleBrowser API ___ Python tracker _

[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: Łukasz Langa: "If you're looking at this issue because it still happens to you, you are probably using zipimport. Stop using zipimport." Hum, do you mean that zipimport also has an issue? Maybe open a new issue? --

[issue31461] IDLE: Enhance class browser

2017-09-13 Thread Terry J. Reedy
New submission from Terry J. Reedy: This is an index issue for keeping track of improvements to IDLE's class browser. They should mostly (or all?) be done in separate issues and PRs. Existing issues with patches. Only the first, a 'must', is recently reviewed. #1612262 Use 3.7 enhanced pyc

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: Source_ModuleLockAsRLockTests.test_different_thread() of test.test_importlib.test_locks failed: http://buildbot.python.org/all/builders/x86-64%20El%20Capitan%203.x/builds/758/steps/test/logs/stdio test_different_thread (test.test_importlib.test_locks.Source_M

[issue31447] proc communicate not exiting on python subprocess timeout using PIPES

2017-09-13 Thread Martin Panter
Martin Panter added the comment: . Isn’t your use of “cmd” similar enough to shell=True? I.e. isn’t that a “cmd” parent process spawning a “waitfor” child? If your 4 s “subprocess.run” call times out, does it kill the “waitfor” process, or leave it running? Could the “waitfor” process write to

[issue31460] IDLE: Revise ModuleBrowser API

2017-09-13 Thread Terry J. Reedy
New submission from Terry J. Reedy: The signature of browser.ClassBrowser(to be renamed ModuleBrowser).__init__ is def __init__(self, flist, name, path, _htest=False, _utest=False) flist is only used to access the application root. Change it to master. Then text can directly pass the test ro

[issue31458] Broken link to Misc/NEWS in What's New page

2017-09-13 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- keywords: +patch pull_requests: +3547 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue31459] IDLE: Remane Class Browser as Module Browser

2017-09-13 Thread Terry J. Reedy
New submission from Terry J. Reedy: 'ClassBrowser' expanded to a module browser years ago. Change the name in the menu, multiple places in browser.py, and wherever the class is referenced. If one clicks the menu entry while not editing a Python file, an Open Module entry box is displayed. Ot

[issue31458] Broken link to Misc/NEWS in What's New page

2017-09-13 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue31458] Broken link to Misc/NEWS in What's New page

2017-09-13 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: In "What's new in Python" page: (https://docs.python.org/3.7/whatsnew/index.html) The link to Misc/NEWS is 404. The text is: The “Changelog” is a HTML version of the file Misc/NEWS which contains all nontrivial changes to Python for the current version.

[issue30246] fix several error messages in struct

2017-09-13 Thread Martin Panter
Martin Panter added the comment: FWIW a similar change to the Struct constructor message was also proposed in Issue 19985. -- ___ Python tracker ___ ___

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: Hum, test_barrier of test_thread failed: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/880/steps/test/logs/stdio 0:02:09 load avg: 2.50 [106/405/1] test_thread failed (env changed) -- running: test_multiprocessing_spawn (

[issue31323] test_ssl: reference cycle between ThreadedEchoServer and its ConnectionHandler

2017-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue31424] test_socket hangs on x86 Gentoo Installed with X 3.x

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: Hum, the test passed the following 17 builds. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3546 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19985] Not so correct error message when initializing Struct with ill argument

2017-09-13 Thread Martin Panter
Martin Panter added the comment: For Python 2.7, this change doesn’t seem important enough for a bug fix. -- ___ Python tracker ___ _

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3545 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset ace1ecc00b35a8b1dc6e352d547dde07913017bb by Victor Stinner in branch 'master': bpo-31234: threading_cleanup() now warns immediately (#3138) https://github.com/python/cpython/commit/ace1ecc00b35a8b1dc6e352d547dde07913017bb -- ___

[issue31457] LoggerAdapter objects cannot be nested

2017-09-13 Thread Łukasz Langa
Changes by Łukasz Langa : -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31457] LoggerAdapter objects cannot be nested

2017-09-13 Thread Łukasz Langa
Changes by Łukasz Langa : -- keywords: +patch pull_requests: +3544 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue31457] LoggerAdapter objects cannot be nested

2017-09-13 Thread Łukasz Langa
Changes by Łukasz Langa : -- title: LoggerAdapter -> LoggerAdapter objects cannot be nested ___ Python tracker ___ ___ Python-bugs-li

[issue31457] LoggerAdapter

2017-09-13 Thread Łukasz Langa
New submission from Łukasz Langa: LoggerAdapter objects cannot be nested in Python 3 due to their `log()` and `isEnabledFor()` methods addressing attributes that are not present on the proxy. Adding the missing attributes fixes the issue. -- assignee: lukasz.langa messages: 302111 nos

[issue31353] Implement PEP 553 - built-in debug()

2017-09-13 Thread R. David Murray
R. David Murray added the comment: It is a new feature, so no it would not be backported. -- nosy: +r.david.murray type: -> enhancement ___ Python tracker ___ _

[issue31353] Implement PEP 553 - built-in debug()

2017-09-13 Thread Dawid Gosławski
Dawid Gosławski added the comment: Will that be backported also to Python2.7 ? I personally do not see a reason to teach old dog new tricks but it seems appropriate in such core things. New users could transition easier, otherwise this would be next py2<->py3 difference to explain every time s

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-13 Thread Stefan Behnel
Stefan Behnel added the comment: > Is it correct to call _PyType_Lookup() with an exception set? The general rule of thumb is that it's not safe to call any user code with a live exception set, and lookups can call into user code. I quickly looked through all occurrences (there aren't that man

[issue28556] typing.py upgrades

2017-09-13 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- keywords: +patch pull_requests: +3543 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue31455] ElementTree.XMLParser() mishandles exceptions

2017-09-13 Thread Stefan Behnel
Stefan Behnel added the comment: Feel free to provide a separate pull request. These issues seem independent of the exception handling problem that I wrote a fix for. -- ___ Python tracker ___

[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: If you're looking at this issue because it still happens to you, you are probably using zipimport. Stop using zipimport. -- nosy: +lukasz.langa ___ Python tracker _

[issue31456] SimpleCookie fails to parse any cookie if an entry has whitespace in the name

2017-09-13 Thread Adam Davis
New submission from Adam Davis: ```>>> from http.cookies import SimpleCookie >>> cookie_string = "ASDF=stuff; ASDF space=more stuff" >>> cookie = SimpleCookie() >>> cookie.load(cookie_string) >>> cookie.items() dict_items([]) >>> cookie_string = "ASDF=stuff" >>> cookie.load(cookie_string) >>> coo

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Since _PyDict_GetItem_KnownHash() may or may not set an exception, we have to > check for a live exception after calling it, and that finds the old exception > of the last attribute lookup and decides that its own lookup failed. Hmm, with PyDict_GetItem()

[issue31455] ElementTree.XMLParser() mishandles exceptions

2017-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I see many other issues with C implementation of ElementTree. 1. If XMLParser.__init__ is called twice, it leaks references and the Expat parser. Possible solution: use the Py_XSETREF() macro instead of simple assignment. The Expat parser needs special

[issue31454] Include "import as" in documentation

2017-09-13 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: import as is documented, so I'm closing this unless you have other concerns. Python 3 docs: https://docs.python.org/3/reference/simple_stmts.html#import ``` If the module name is followed by as, then the name following as is bound directly to the imported modu

[issue31455] ElementTree.XMLParser() mishandles exceptions

2017-09-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eli.bendersky, haypo, serhiy.storchaka versions: +Python 2.7, Python 3.6 ___ Python tracker ___ _

[issue31455] ElementTree.XMLParser() mishandles exceptions

2017-09-13 Thread Stefan Behnel
Changes by Stefan Behnel : -- keywords: +patch pull_requests: +3542 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue31455] ElementTree.XMLParser() mishandles exceptions

2017-09-13 Thread Stefan Behnel
New submission from Stefan Behnel: The "XMLParser.__init__()" method in "_elementtree.c" contains this code: self->handle_start = PyObject_GetAttrString(target, "start"); self->handle_data = PyObject_GetAttrString(target, "data"); self->handle_end = PyObject_GetAttrString(target, "en

[issue30442] Skip test_xml_etree under coverage

2017-09-13 Thread Roundup Robot
Changes by Roundup Robot : -- keywords: +patch pull_requests: +3541 stage: backport needed -> patch review ___ Python tracker ___ ___

[issue31271] an assertion failure in io.TextIOWrapper.write

2017-09-13 Thread Roundup Robot
Changes by Roundup Robot : -- keywords: +patch pull_requests: +3540 stage: backport needed -> patch review ___ Python tracker ___ ___

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2017-09-13 Thread Christian Heimes
Christian Heimes added the comment: It's an ugly hack and not a long term solution. The PROTOCOL_TLSv* constants and ssl.wrap_socket() are discouraged and will be removed soon. -- ___ Python tracker _

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2017-09-13 Thread Christian Heimes
Christian Heimes added the comment: Matthias, this issue affects Debian and probably Ubuntu, too. Could you please discuss it with Debian maintainers and propose a workaround? Python does not expose the new OpenSSL 1.1.0 SSL_CTX_set_min_proto_version() and SSL_CTX_set_max_proto_version() calls

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset acb9fa79fa6453c2bbe3ccfc9cad2837feb90093 by Victor Stinner in branch 'master': bpo-31234, socket.create_connection(): Fix ref cycle (#3546) https://github.com/python/cpython/commit/acb9fa79fa6453c2bbe3ccfc9cad2837feb90093 -- ___

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2017-09-13 Thread Adrian Vollmer
Adrian Vollmer added the comment: I have a workaround for now: versions = [ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_2, ] firstbytes = s.recv(16, socket.MSG_PEEK) ss = ssl.wrap_socket(

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2017-09-13 Thread Christian Heimes
Changes by Christian Heimes : -- title: ssl.PROTOCOL_TLS only select TLSv1.2 -> Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS ___ Python tracker ___ __

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2017-09-13 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Christian Heimes
Christian Heimes added the comment: Ah, here we go: https://anonscm.debian.org/viewvc/pkg-openssl/openssl/branches/1.1.0/debian/patches/tls1_2_default.patch Debian patched the default for SSL_CTX_set_min_proto_version(). The SSL_CTX_set_min_proto_version() and SSL_CTX_set_max_proto_version() A

[issue31439] WindowsError: [Error 2] The system cannot find the file specified

2017-09-13 Thread Zachary Ware
New submission from Zachary Ware: In the absence of a description of your issue, there's nothing we can do with just the generic exception in the title so I'm closing the issue. If you can provide a real description of what went wrong for you, you may reopen the issue. -- resolution:

[issue31454] Include "import as" in documentation

2017-09-13 Thread R. David Murray
R. David Murray added the comment: Where do you find that it is not documented that you would expect it to be? Because 'import' 'as' is certainly documented. -- nosy: +r.david.murray ___ Python tracker _

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Adrian Vollmer
Adrian Vollmer added the comment: Okay, thanks for your time! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Christian Heimes
Christian Heimes added the comment: Please report this issue to the Debian maintainers. I don't know how Debian has disabled TLS 1.0 and TLS 1.1 for the SSL_METHOD *TLS_method(void). It might not be possible to enable auto-negotiation for old protocols at all. -- _

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Adrian Vollmer
Adrian Vollmer added the comment: Doesn't seem to do anything: >>> ctx.options 2181170175L >>> ctx.options & ~(ssl.OP_NO_TLSv1 | ssl.OP_NO_TLSv1_1) 2181170175L -- ___ Python tracker __

[issue29639] test suite intentionally avoids referring to localhost, destroying abstraction away from IPv6 vs IPv4

2017-09-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: LOL. That is a very strange story and the last thing i'd have expected to fall out from changing one string to another. :) -- ___ Python tracker ___

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: I'm not excited to keep multiple exception objects alive because the Exception.__traceback__ causes many hairy reference cycle issues. I just found an old bug in socket.create_connection(): https://github.com/python/cpython/pull/3546 See https://bugs.python.or

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Christian Heimes
Christian Heimes added the comment: You have to enable the protocols by applying a reverse bitmask to SSLContext.options: ctx = ssl.SSLContext(ssl.PROTOCOL_TLS) ctx.load_cert_chain('server.pem') ctx.options &= ~(ssl.OP_NO_TLSv1 | ssl.OP_NO_TLSv1_1) sslsock = ctx.wrap_socket(s, server_side=True

[issue29639] test suite intentionally avoids referring to localhost, destroying abstraction away from IPv6 vs IPv4

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: I would like to share a short story with you. I'm working on fixing *all* bugs on our 3 CI (buildbots, Travis CI, AppVeyor). I fixed almost all random test failures. Right now, I'm trying to fix all "dangling thread" warnings: bpo-31234. I was sure that I was

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Adrian Vollmer
Adrian Vollmer added the comment: I read about that, but I don't understand. If I use openssl s_server -port , I can connect using either one of the three protocols. Even if that's the new default, is there no way now to get python on Buster/Sid to use OpenSSL in a non-default mode and h

[issue31448] test_poplib started to log a lot of ResourceWarning warnings on AMD64 Windows8.1 Refleaks 3.x

2017-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3539 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Christian Heimes
Christian Heimes added the comment: Debian Buster has patched OpenSSL to disable TLS 1.0 and 1.1 by default, https://lists.debian.org/debian-devel-announce/2017/08/msg4.html -- ___ Python tracker

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Adrian Vollmer
Adrian Vollmer added the comment: Debian buster/sid -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue31454] Include "import as" in documentation

2017-09-13 Thread Steve Johnson
New submission from Steve Johnson: I was wondering if you could do something like fiblib = import fibo or import fibo as fiblib, and low and behold, the "as" variant worked. I find this very useful, and thought it should be part of your documentation on "import" -- assignee: docs@pytho

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Adrian Vollmer
New submission from Adrian Vollmer: According to the documentation (https://docs.python.org/2/library/ssl.html#ssl.PROTOCOL_TLS), using ssl_version = ssl.PROTOCOL_TLS in a server socket should offer all TLS/SSL versions. However, it only offers TLSv1_2. I attached a proof of concept. $ pyth

  1   2   >