[issue31462] Remove trailing whitespaces

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

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

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

[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

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

[issue31461] IDLE: Enhance class browser

2017-09-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +csabella ___ Python tracker ___ ___ Python-bugs-list

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

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

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

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

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3549 ___ Python tracker ___ ___

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

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

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

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

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

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

[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

[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

[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

[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

[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

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

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

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

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3546 ___ Python tracker ___ ___

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

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

[issue31457] LoggerAdapter objects cannot be nested

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

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

[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

[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

[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

[issue28556] typing.py upgrades

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

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

[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

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

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

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

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

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

[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

[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

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

[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

[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

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

[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

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

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

[issue31453] ssl.PROTOCOL_TLS only select TLSv1.2

2017-09-13 Thread Alex Gaynor
Alex Gaynor added the comment: What operating system are you on? -- nosy: +Alex Gaynor ___ Python tracker ___

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

2017-09-13 Thread ALPER PAKSOY
ALPER PAKSOY added the comment: I downloaded and installed TCL 8.6.6.8606 and restarted my computer. I verified that the new version was installed. Unfortunately the problem has not been solved. Thank you. Alper -- ___ Python tracker

[issue31452] asyncio.gather does not cancel tasks if one fails

2017-09-13 Thread Andrew Lytvyn
New submission from Andrew Lytvyn: If you do not await gather, then if one of gather inner coroutines fails, others keep working, but they should not. ```python import asyncio import logging logging.basicConfig(level=logging.DEBUG) loop = asyncio.get_event_loop() async def

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: test_ssl: test_recv_zero (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 54502) server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256) server: selected protocol is now None Warning -- threading_cleanup()

[issue31451] PYTHONHOME is not absolutized

2017-09-13 Thread Xiang Zhang
New submission from Xiang Zhang: I find that PYTHONHOME is not absolutized even after VM initialization. So sys.prefix will be "usr" if I execute `PYTHONHOME=usr python`. This could lead to libraries like pip to fail if the current directory is changed, such as by `os.chdir`. I am not sure

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset b157ce1e58b03988ce4340a55d0b856125833cc5 by Victor Stinner in branch 'master': bpo-31234: Fix dangling thread in test_ftplib (#3544) https://github.com/python/cpython/commit/b157ce1e58b03988ce4340a55d0b856125833cc5 --

[issue31449] Potential DoS Attack when Parsing Email with Huge Number of MIME Parts

2017-09-13 Thread R. David Murray
R. David Murray added the comment: 10 million mime parts? That sounds like the kind of thing rfc 1870 was designed to address in a more general fashion (ie: the SMTP server should be enforcing maximum message size if you are worried about DOS attacks). 1 million = 3 seconds, 10 million =

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

2017-09-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue31443] Possibly out of date C extension documentation

2017-09-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: On Windows at least: I think "another C module" should be understood as "another DLL or executable". A user extension module is a different DLL from the core Python, so the advice is still valid. -- nosy: +amaury.forgeotdarc

[issue31234] Make support.threading_cleanup() stricter

2017-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3538 ___ Python tracker ___ ___

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

2017-09-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 769ddb075ac3a840d473930a12a5b72bfbab366f by Victor Stinner (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31448, test_poplib: Fix ResourceWarning (GH-3542) (#3543)

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

2017-09-13 Thread R. David Murray
R. David Murray added the comment: Here is a not-much-more-complicated version that solves the problem. It is probably worth changing as the revised example makes clear the difference between self and obj, which is an important distinction. class RevealAccess(object):

  1   2   >