[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-23 Thread Armin Rigo
Armin Rigo added the comment: A version of the same problem without threads, using generators instead to get the bug deterministically. Prints 1, 1, 1, 1 on CPython and 1, 2, 3, 3 on PyPy; in both cases we would rather expect 1, 2, 3, 4. -- Added file: http://bugs.python.org/file46972

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-23 Thread Armin Rigo
Changes by Armin Rigo : -- nosy: +arigo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please make a review of this PR? Especially the documentation part. This PR is a part of a set of PRs that fix potential vulnerabilities (issue13617, issue30730, and yet few issues planned). -- ___ Py

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-23 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2420 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue13821] misleading return from isidentifier

2017-06-23 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I have been bitten by that as well. I think the doc should mention to verify that the given string is normalized, not that it **should** be normalized. Agreed that If isidentifier could also possibly grow a `allow_non_nfkc=True` default parameter that wou

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.3 and 3.4 starves from this issue -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bug

[issue30606] The reply's additional 'Re' is ok

2017-06-23 Thread Lovelyn
New submission from Lovelyn: love On Jun 9, 2017 11:39 AM, "Lovelyn" wrote: > > New submission from Lovelyn: > > lovecoli...@gmail.com > > -- > messages: 295479 > nosy: Love > priority: normal > severity: normal > status: open > title: The reply's additional 'Re' is ok > > _

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-23 Thread Nathaniel Smith
New submission from Nathaniel Smith: The attached script looks innocent, but gives wildly incorrect results on all versions of CPython I've tested. It does two things: - spawns a thread which just loops, doing nothing - in the main thread, repeatedly increments a variable 'x' And most of the

[issue25720] Fix curses module compilation with ncurses6

2017-06-23 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: Ping. I updated PR a bit: macOS is joined to new compile condition and remove platform-specific condition. -- ___ Python tracker ___ ___

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is something more I want to add: the bitness of the machine. >>> platform.architecture() ('64bit', 'WindowsPE') Display as '(64 bit)' or '(32 bit). For the moment, add this to the title since it will not necessarily fit after python version. See the do

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset bd570f42110b99bade6e58e3ed2d620f27a92fc3 by terryjreedy in branch '3.6': [3.6] bpo-24813: IDLE: Add default title to help_about (GH-2366) (#2369) https://github.com/python/cpython/commit/bd570f42110b99bade6e58e3ed2d620f27a92fc3 -- _

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: tk Text does not have a ttk version and does have default and tab settable colors. Maybe I should start experimenting with tagged text instead of Labels and Buttons. Let's skip 4 for now. You can work on 'default non-model' (I don't want to toss the modal c

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2419 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 18ede062581edb7e8d359d02cd3419466114cf5a by terryjreedy (csabella) in branch 'master': bpo-24813: IDLE: Add default title to help_about (#2366) https://github.com/python/cpython/commit/18ede062581edb7e8d359d02cd3419466114cf5a -- ___

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Cheryl Sabella
Cheryl Sabella added the comment: I submitted a PR for #1. For #4, I had a question to this related to ttk widgets. When I had moved the widgets to ttk, I had to remove the fg and bg settings because the ttk versions of Label, Frame, and Widget don't have those as part of their config. Do yo

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8f525882fa43209d52afdb99753de2f5111d7433 by Victor Stinner in branch 'master': bpo-30726: expat: Fix compiler warnings on Windows 64-bit (#2368) https://github.com/python/cpython/commit/8f525882fa43209d52afdb99753de2f5111d7433 -- __

[issue30728] IDLE: Modernize configdialog code.

2017-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reviewed IDLE issues with patches. I will post my updated issues list on the roadmap issue, #30422. Of relevance to this issue is that config related patches are split between config, configdialog, and config_key, and limited to 3 or 4 each. I decided tha

[issue30743] unittest discover does not mention module file must be named with "test_" prefix

2017-06-23 Thread Alessandro Piccione
Alessandro Piccione added the comment: If you refer to the -p ("pattern" parameter) I think not. I have my module named aaaTest.py. I is is not mentioned that discover look for modules named "test_" for which reason I have to use a pattern? If you refer to -s ("start-directory" parameter) same

[issue30743] unittest discover does not mention module file must be named with "test_" prefix

2017-06-23 Thread Zachary Ware
Zachary Ware added the comment: Does this cover what you're looking for? https://docs.python.org/3/library/unittest.html#cmdoption-unittest-discover-p -- nosy: +zach.ware ___ Python tracker ___

[issue30743] unittest discover does not mention module file must be named with "test_" prefix

2017-06-23 Thread Alessandro Piccione
New submission from Alessandro Piccione: 1. execute "python -m unittest" 2. Result: 0 test found 3. Change file name from "aaaTest.py" to "test_aaa.py" 4. execute "python -m unittest" 3. Result: Ran 1 tests in 000.0s Module file MUST be named using the prefiux "test_". The page "https://docs.p

[issue30543] test_timeout fails on AMD64 FreeBSD CURRENT Debug 3.x: ConnectionResetError: [Errno 54] Connection reset by peer

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%203.6/builds/266/steps/test/logs/stdio == ERROR: testSend (test.test_timeout.TCPTimeoutTestCase) ---

[issue30742] VS2015 support for 2.7 branch

2017-06-23 Thread Dženan Zukić
Changes by Dženan Zukić : -- components: +Build -Library (Lib) type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mai

[issue30742] VS2015 support for 2.7 branch

2017-06-23 Thread Dženan Zukić
New submission from Dženan Zukić: In VS2015 timezone and friends have been replace by _timezone (related issue24643). The second problem is missing _PyVerify_fd during linking phase. -- components: Library (Lib) messages: 296738 nosy: Dženan Zukić priority: normal severity: normal statu

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-23 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2418 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30711] getaddrinfo invalid port number

2017-06-23 Thread Radek Smejkal
Radek Smejkal added the comment: See also issue30710. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue30711] getaddrinfo invalid port number

2017-06-23 Thread Radek Smejkal
Changes by Radek Smejkal : Removed file: http://bugs.python.org/file46965/getaddrinfo_invalid_port.patch ___ Python tracker ___ ___ Python-bug

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2417 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-23 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2416 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30695] add a nomemory_allocator to the _testcapi module

2017-06-23 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2415 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 48fbe52ac71ea711a4701db909ad1ce2647b09fd by Serhiy Storchaka in branch 'master': bpo-30664: The description of a unittest subtest now preserves the (#2265) https://github.com/python/cpython/commit/48fbe52ac71ea711a4701db909ad1ce2647b09fd -

[issue11978] Report correct coverage.py data for tests that invoke subprocesses

2017-06-23 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5 ___ Python tracker ___ ___

[issue11978] Report correct coverage.py data for tests that invoke subprocesses

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: Just an FYI that I have never managed to make this work. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: New changeset 599ff020b308113f3709fd4e623d9f0d08511706 by Brett Cannon in branch '3.5': [3.5] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) (GH-2365) https://github.com/python/cpython/commit/599ff020b308113f3709fd4e623d9f0d0851170

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: New changeset 9db3ae045dd462a2da2e016c44231de1befd1f87 by Brett Cannon in branch '3.6': [3.6] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) (#2364) https://github.com/python/cpython/commit/9db3ae045dd462a2da2e016c44231de1befd1f87

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-06-23 Thread R. David Murray
R. David Murray added the comment: Just as well. I had no time last weekend. I should have time this Sunday, though. -- ___ Python tracker ___

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: To be clear, as the title and version suggest, the bug is the 2.7 segfault versus the 3.x exception during compile. It is normal for the compiler to have limits and to exit when they are exceeded. I have no idea if the 3.x code can be backported. I added ast

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +2414 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +2413 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +georg.brandl stage: patch review -> backport needed versions: +Python 3.3, Python 3.4 -Python 2.7 ___ Python tracker ___ _

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2412 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2411 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: New changeset c38e32a10061a7c6d54e7e53ffabf7af7998f045 by Brett Cannon (Alexandru Ardelean) in branch 'master': bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) https://github.com/python/cpython/commit/c38e32a10061a7c6d54e7e53ffabf7af

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a7c0264735f46afab13771be4218d8eab0d7dc91 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2361) https://github.com/python/cpython/commit/a7c0264735f46afab13771be

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e7135751b8e48af80665e40ac8fa6d0073e5affe by Serhiy Storchaka in branch '3.6': [3.6] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2360) https://github.com/python/cpython/commit/e7135751b8e48af80665e40a

[issue30741] https://www.pypi-mirrors.org/ error 503

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: So is this a bug in Python or a problem with the website? If it's the former then the title is misleading and we should clarify it, and if it's the latter this should be closed as "third party". -- nosy: +brett.cannon ___

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1b7474dedcbbd731a362b17abfbd7e5a60b64f63 by terryjreedy in branch '3.6': [3.6] bpo-24813: IDLE: Add icon to help_about (GH-2335) (#2359) https://github.com/python/cpython/commit/1b7474dedcbbd731a362b17abfbd7e5a60b64f63 -- __

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2410 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2409 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d174d24a5d37d1516b885dc7c82f71ecd5930700 by Serhiy Storchaka in branch 'master': bpo-30730: Prevent environment variables injection in subprocess on Windows. (#2325) https://github.com/python/cpython/commit/d174d24a5d37d1516b885dc7c82f71ecd5930

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2408 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset d352d689775699c289e011e8cec52c23c600b7fa by terryjreedy (csabella) in branch 'master': bpo-24813: IDLE: Add icon to help_about (#2335) https://github.com/python/cpython/commit/d352d689775699c289e011e8cec52c23c600b7fa --

[issue30695] add a nomemory_allocator to the _testcapi module

2017-06-23 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: -2406 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-23 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: -2407 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30696] infinite loop in PyRun_InteractiveLoopFlags()

2017-06-23 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2407 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30695] add a nomemory_allocator to the _testcapi module

2017-06-23 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2406 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30741] https://www.pypi-mirrors.org/ error 503

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: See also issue #30739: Could not fetch URL https://pypi.python.org/simple/PyJWT/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] unknown error (_ssl.c) -- ___ Python tracker

[issue30741] https://www.pypi-mirrors.org/ error 503

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: http://www.pypi-mirrors.org/ (clear text) works and redirects to https://www.pypi-mirrors.org/ (TLS) which fails with HTTP error 503: 503 Service Unavailable No server is available to handle this request. -- nosy: +haypo __

[issue30741] https://www.pypi-mirrors.org/ error 503

2017-06-23 Thread Luc Zimmermann
New submission from Luc Zimmermann: is that linked with the certificate error on pypi ? you redirect http request to https, but you still listen 80 and not 443 ? -- messages: 296721 nosy: Luc Zimmermann priority: normal severity: normal status: open title: https://www.pypi-mirrors.org/

[issue30740] SSLError when cancelling an SSL connection

2017-06-23 Thread Mark Haase
New submission from Mark Haase: If a task is cancelled while it waiting for SSL negotiation, then an SSLError is raised, but there is no way (as far as I can tell) for the caller to catch it. (The example below is pretty contrived, but in an application I'm working on, the user can cancel down

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: Thank you Eryk Sun for the careful reviews! All known issues on os.spawn*() on Windows are now be fixed, so I closed this issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset cea2174ab7cce01c420b2770562be4c91f1f4e35 by Victor Stinner in branch '3.6': bpo-30604: Skip CoExtra tests if ctypes is missing (#2356) (#2358) https://github.com/python/cpython/commit/cea2174ab7cce01c420b2770562be4c91f1f4e35 --

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset c472fb6b2744b36c7a0823c20e0d5ac9be3ea623 by Victor Stinner in branch '3.6': bpo-30602: Fix lastarg in os.spawnve() (#2287) (#2357) https://github.com/python/cpython/commit/c472fb6b2744b36c7a0823c20e0d5ac9be3ea623 --

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: The test_code is fixed again, so I close the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset d32a05953130fb5cc2d3c0c9fcb20ad0859353f3 by Victor Stinner in branch '3.6': [3.6] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2349) https://github.com/python/cpython/commit/d32a05953130fb5cc2d3c0c9fcb20ad0859353f3 ---

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset d32a05953130fb5cc2d3c0c9fcb20ad0859353f3 by Victor Stinner in branch '3.6': [3.6] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2349) https://github.com/python/cpython/commit/d32a05953130fb5cc2d3c0c9fcb20ad0859353f3 ---

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset f42ce179c8aaa7e211ac4123c58fa3dd9a452004 by Victor Stinner in branch '3.5': [3.5] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2350) https://github.com/python/cpython/commit/f42ce179c8aaa7e211ac4123c58fa3dd9a452004 ---

[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset f42ce179c8aaa7e211ac4123c58fa3dd9a452004 by Victor Stinner in branch '3.5': [3.5] bpo-30726: PCbuild _elementtree: remove duplicate defines (#2348) (#2350) https://github.com/python/cpython/commit/f42ce179c8aaa7e211ac4123c58fa3dd9a452004 ---

[issue21071] struct.Struct.format is bytes, but should be str

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: Ok, I changed struct.Struct.format type to str (Unicode string). If someone wants to modify the C code to use a PyUnicodeObject rather than a char*, feel free to propose a further change. Since the initial issue is fixed, I now close the issue. Thank you all

[issue21071] struct.Struct.format is bytes, but should be str

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset f87b85f80853c580b1c8bf78a51b0e9a25f6e1a7 by Victor Stinner in branch 'master': bpo-21071: struct.Struct.format type is now str (#845) https://github.com/python/cpython/commit/f87b85f80853c580b1c8bf78a51b0e9a25f6e1a7 -- _

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-23 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2405 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset a4b091e135ccf345cfafdd8477aef897c5214f82 by Victor Stinner in branch 'master': bpo-30604: Skip CoExtra tests if ctypes is missing (#2356) https://github.com/python/cpython/commit/a4b091e135ccf345cfafdd8477aef897c5214f82 -- _

[issue30739] pypi ssl errors [CERTIFICATE_VERIFY_FAILED]

2017-06-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30739] pypi ssl errors [CERTIFICATE_VERIFY_FAILED]

2017-06-23 Thread Luc Zimmermann
New submission from Luc Zimmermann: Hi Guys, I've a strange behavior. We use python for configure our new boxes with openWRT and coovaChilli. But since yesterday, when i ask to pip to dowload PyJWT, json-cfg and speedtest-cli, some boxes can download these packages, and some can't. root@O

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-23 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2404 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset c8d6ab2e25ff212702d387e516e258b1d8c52910 by Victor Stinner in branch 'master': bpo-30602: Fix lastarg in os.spawnve() (#2287) https://github.com/python/cpython/commit/c8d6ab2e25ff212702d387e516e258b1d8c52910 -- _

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-23 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2403 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: > In Python 3 the test was failed if decrease the sleep time in _wait() to > 0.001. Patched test no longer fail for any small sleep intervals. I used sleep(1e-9), 1 nanosecond, for my tests :-) I confirm that I'm unable to reproduce the bug on 2.7 and master b

[issue29304] dict: simplify lookup functions

2017-06-23 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2402 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: > I don't like the idea of an additional Mock class for this. Hum, in the current implementation, it's an enhancement of the Mock class, no more a new class. -- ___ Python tracker

[issue26145] PEP 511: Add sys.set_code_transformers()

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: Recently, some people asked me for an update for my FAT Python project. So I rebased this change I wrote 1 year 1/2 and adapted it for the new code base: * I renamed test_pep511.py to test_code_transformer.py * I removed the sys module from the PyInterpreterSta

[issue26145] PEP 511: Add sys.set_code_transformers()

2017-06-23 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2401 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue26098] PEP 510: Specialize functions with guards

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: Recently, some people asked me for an update for my FAT Python project. So I rebased this change I wrote 1 year 1/2 and adapted it for the new code base: * I renamed test_pep510.py to test_func_specialize.py * I removed the useless PyFunction_Check() macro * I

[issue26098] PEP 510: Specialize functions with guards

2017-06-23 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2400 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29304] dict: simplify lookup functions

2017-06-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: >From a purely human and social perspective, I agree that it's beneficial to >minimize duplicated code. >From a performance perspective, I can see two possible consequences: - either compilers are already smart enough to undo the code duplication, and generate

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In Python 3 the test was failed if decrease the sleep time in _wait() to 0.001. Patched test no longer fail for any small sleep intervals. -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5, Python 3.6, Python 3.

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7709b4d57b433ef027a2e7e63b4cab3fc9ad910d by Serhiy Storchaka in branch '2.7': [2.7] bpo-30727: Fix a race condition in test_threading. (GH-2334). (#2353) https://github.com/python/cpython/commit/7709b4d57b433ef027a2e7e63b4cab3fc9ad910d ---

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e2aec8e691d8acb08373889d9af48a5b1d03b689 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30727: Fix a race condition in test_threading. (GH-2334) (#2352) https://github.com/python/cpython/commit/e2aec8e691d8acb08373889d9af48a5b1d03b689

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c1d5345679eaa5fccd719b1c130140eecc8ba4c8 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30727: Fix a race condition in test_threading. (GH-2334) (#2351) https://github.com/python/cpython/commit/c1d5345679eaa5fccd719b1c130140eecc8ba4c8

[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-23 Thread Michael Foord
Michael Foord added the comment: Note that you can use an object as the parameter to the spec argument rather than just a list of attributes. Hmmm... I'm not totally opposed to the addition of a "seal_mock" method (optionally with a recurse boolean for child mocks) being added to the Mock/Ma

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2399 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 87c65550730a8f85ce339ba197bce4fb7e836619 by Victor Stinner (Segev Finer) in branch 'master': bpo-30726: Fix elementtree warnings on Windows due to expat upgrade (#2319) https://github.com/python/cpython/commit/87c65550730a8f85ce339ba197bce4fb7e836

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2398 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2397 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 32cb968a2edd482891c33b6f2ebae10f1d305424 by Serhiy Storchaka in branch 'master': bpo-30727: Fix a race condition in test_threading. (#2334) https://github.com/python/cpython/commit/32cb968a2edd482891c33b6f2ebae10f1d305424 -- _

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: > Oh... I'm sorry Segev Finer, I didn't see that you proposed a PR :-( Please rebase and rewrite your PR to just add _CRT_SECURE_NO_WARNINGS. Once merged, I will include this change to my 3.6 and 3.5 backports. -- _

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-23 Thread STINNER Victor
STINNER Victor added the comment: For siphash.h warnings, I created a PR on libexpat: https://github.com/libexpat/libexpat/pull/58 -- ___ Python tracker ___ _

  1   2   >