[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: https://docs.python.org/3/library/struct.html#byte-order-size-and-alignment """ Notes: 1. Padding is only automatically added between successive structure members. No padding is added at the beginning or the end of the encoded struct. """ -- ___

[issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/774/steps/test/logs/stdio == FAIL: test_timeout (test.test_multiprocessing_spawn.WithProcessesTestQueue) ---

[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Christoph Sarnowski
New submission from Christoph Sarnowski: In Python 3.6, the flags in the "re" module became members of an enum.IntFlag, whereas before they were just ints. This breaks the regex demo in Tools/demo/redemo.py. To fix this, in line 86 of redemo.py, getattr(re, name) has to be replaced by

[issue30698] asyncio sslproto do not shutdown ssl layer cleanly

2017-06-21 Thread Grzegorz Grzywacz
Grzegorz Grzywacz added the comment: No one yet responded, maybe this is unclear. I will clarify what is going on, why i made this change, what we gain from this and why this is not ideal solution. I will focus on ssl layer shutdown as this issue regards. We have connection asyncio <-> nginx

[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Louie Lu
Louie Lu added the comment: Hi Christoph, chould you provide a small example that breaks the regex demo? thanks! -- nosy: +louielu ___ Python tracker ___ ___

[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Louie Lu
Louie Lu added the comment: Also, would you like to contribute with PR on GitHub? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: I reproduce the bug after installing Python 3.6.2rc1 on Windows. I reopen the issue and set the priority to release blocker. -- nosy: +benjamin.peterson, larry, ned.deily priority: normal -> release blocker resolution: fixed -> status: closed -> open

[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Christoph Sarnowski
Christoph Sarnowski added the comment: Hi, sorry for forgetting steps to reproduce the bug. Easiest way to see it is to start redemo.py from a console (important on windows), so you can see stdout/stderr. Then just a click on any of those flag checkboxes leads to an exception backtrace printed

[issue30710] getaddrinfo raises OverflowError

2017-06-21 Thread Radek Smejkal
Radek Smejkal added the comment: > But how large is the performance hit of this change? It adds at least one > additional memory allocation for the str object. If the slowdown is > significant perhaps it is worth to keep the old code as a fast path. commit 5cc7ac24da10568d2a910a91a24183b904118

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

2017-06-21 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- pull_requests: +2355 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2017-06-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: Added pull_request2355 to address issues from upgrading to Expat 2.2.0 on Windows 2.7 -- nosy: +jkloth ___ Python tracker ___ ___

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: Re buildbot failure: see PR on issue29591 It's not a problem with Expat, but with our project files. -- nosy: +jkloth ___ Python tracker ___

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

2017-06-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: Added PR to issue29591 to address issue building Expat. In short, the project files were not updated along with the copy of Expat. I cannot reproduce the GUI build problem. I would need to see the build logs to attempt to resolve. --

[issue30710] getaddrinfo raises OverflowError

2017-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I like your idea about getting rid of OverflowError. But wouldn't it make the problem with other reported by you issue, issue30711, worse? -- ___ Python tracker

[issue30710] getaddrinfo raises OverflowError

2017-06-21 Thread Radek Smejkal
Radek Smejkal added the comment: > Why can't the user simply pass in a string service name in the first place? He/she can. But I don't propose to change that. The patch only changes the way a given number is converted to a string. That is, without an intermediate C long. -- __

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-21 Thread knzsys
knzsys added the comment: many many thanks for your help! and fast responses :-) this explain my oberservations why only the first 2 bytes are padded? 0xAABBCCDD (4 bytes = real32) to 0xAABBCCDD (6 bytes) and not to 0xAABBCCDD (8 bytes) it has something to do with the behavior of th

[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think ideally it would be nice to provide a switch between Unicode and bytes and disable the LOCALE flag in the Unicode mode. But this is too complex task. I think it is better to remove LOCALE. -- nosy: +serhiy.storchaka _

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because the size of '2s2s29H' is 62 bytes. If the following C float needs to be aligned on 4 bytes boundary, it should start at offset 64, after 2 padding bytes. -- ___ Python tracker

[issue29523] latest setuptools breaks virtualenvs due to unbundling dependencies

2017-06-21 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Closing this per the discussion at the PR. -- stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue29269] test_socket failing in solaris

2017-06-21 Thread Peter
Peter added the comment: Getting the same test_socket errors on Solaris 11 with Python 3.5.3. == ERROR: testCount (test.test_socket.SendfileUsingSendfileTest)

[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Christoph Sarnowski
Christoph Sarnowski added the comment: By the way, I confused the flags, in my error-reproduction steps, instead of the re.MULTILINE flag, it is the re.DOTALL flag that should lead to all lines being matched by ".*". -- ___ Python tracker

[issue30710] getaddrinfo raises OverflowError

2017-06-21 Thread Radek Smejkal
Radek Smejkal added the comment: > I like your idea about getting rid of OverflowError. But wouldn't it make the > problem with other reported by you issue, issue30711, worse? It depends on the implementation of the underlying getaddrinfo. For Modules/getaddrinfo.c, it will be worse for positi

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

2017-06-21 Thread STINNER Victor
Changes by STINNER Victor : -- title: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472) -> expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472) ___ Python tracker

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5ff7132313eb651107b179d20218dfe5d4e47f13 by Victor Stinner in branch 'master': bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) https://github.com/python/cpython/commit/5ff7132313eb651107b179d20218dfe5d4e47f13 --

[issue30722] Tools/demo/redemo.py broken

2017-06-21 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2356 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30694] Update embedded copy of expat to 2.2.1

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

[issue30694] Update embedded copy of expat to 2.2.1

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

[issue30694] Update embedded copy of expat to 2.2.1

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

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

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: > Added PR to issue29591 to address issue building Expat. In short, the > project files were not updated along with the copy of Expat. I would prefer to first fix the new vulnerabilities, but upgrading expat to 2.2.1, and then review your change. => https://

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

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: > Added pull_request2355 to address issues from upgrading to Expat 2.2.0 on > Windows 2.7 I would prefer to first fix the new vulnerabilities, by upgrading expat to 2.2.1, and then review your change. => https://github.com/python/cpython/pull/2312 --

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-21 Thread David Haney
David Haney added the comment: I submitted a pull request for a possible fix for this issue but haven't received any feedback yet. Is there any additional information needed from me? -- pull_requests: +2361 ___ Python tracker

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-21 Thread David Haney
Changes by David Haney : -- pull_requests: -2361 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
New submission from Charles Wohlganger: Sorry, I'm new to this, and I've done it out of order. Commit #2306 covers the following: In IDLE, parenmatch extension: Add highlighting left and right parens to styles. Make flash-delay setting independent of parens highlighting style. Currently, the f

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-21 Thread desbma
desbma added the comment: Ping. I think any change, included Inada Naoki's idea above is better that the current behavior that pollutes the logging module output. Unfortunately I cannot rely on the 3.6 new thread_name_prefix argument for portability reasons, and have to manually patch my Pyth

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 91d171be45942d37a973b0675521b5159a96be31 by Victor Stinner in branch '3.5': bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2314) https://github.com/python/cpython/commit/91d171be45942d37a973b0675521b5159a96be31 -- ___

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4a66524006852fc982aebafa277f2c043d9ad149 by Victor Stinner in branch '3.6': bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2313) https://github.com/python/cpython/commit/4a66524006852fc982aebafa277f2c043d9ad149 -- ___

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower
Steve Dower added the comment: To clarify (because I never trust test output for this), your install has \n line endings everywhere instead of \r\n? -- ___ Python tracker ___ __

[issue30711] getaddrinfo invalid port number

2017-06-21 Thread Radek Smejkal
Changes by Radek Smejkal : -- components: +Extension Modules -Library (Lib) keywords: +patch Added file: http://bugs.python.org/file46965/getaddrinfo_invalid_port.patch ___ Python tracker __

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2ada64d2a073f85f135461833952dbe8d656810d by Victor Stinner in branch '2.7': [2.7] bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2312) https://github.com/python/cpython/commit/2ada64d2a073f85f135461833952dbe8d656810d -- _

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: I will wait for 2.7, 3.5, 3.6 and master buildbots before backporting the change to 3.3 and 3.4. -- ___ Python tracker ___

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

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: Oh cool, with my commit 2ada64d2a073f85f135461833952dbe8d656810d "[2.7] bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300)", and obvious Jeremy's previous fix!, the compile step of "AMD64 Windows7 SP1 VS9.0 2.7" succeeded for the first time since a lo

[issue21519] IDLE : Bug in keybinding validity check

2017-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe patch affects same area of file as patch for #6739. -- ___ Python tracker ___ ___ Python-b

[issue6739] IDLE: refuse invalid key bindings

2017-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe patch for #21519 affects area of file patched here. -- ___ Python tracker ___ ___ Python-bu

[issue30709] Bad getter from Descriptor#Properties example

2017-06-21 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30724] ZipFile.open treats directory path as empty file

2017-06-21 Thread Kit Yan Choi
New submission from Kit Yan Choi: Given a zipfile with the following content: subdir/ file1.txt subdir/file2.txt >>> archive = ZipFile(file_path, "r") >>> f = archive.open("subdir/", "r") >>>f.read() b'' It is quite odd that the subdirectory can be opened as if it was an empty

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2362 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: -2362 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2363 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower
Steve Dower added the comment: So the pickle issues were because the .gitattributes file changed multiple times since the last release but the files were not modified, so git did not fix them in my build repo. This should cover random and 2to3. Most of the stdlib is correct CRLF. XML should b

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower
Changes by Steve Dower : -- priority: release blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower
Steve Dower added the comment: For the next build, test_codecencodings_iso2022, test_random, test_sax and test_tools should all pass, as the .gitattributes file excludes those files from conversion. I'm still in favour of hardening the tests. test_pcbuild_rc should be skipped. I don't think th

[issue30616] Cannot use functional API to create enum with zero values

2017-06-21 Thread Ethan Furman
Ethan Furman added the comment: New changeset dcc8ce44c74492670e6bfbde588a2acbf8f365e0 by ethanfurman (Dong-hee Na) in branch 'master': bpo-30616: Functional API of enum allows to create empty enums. (#2304) https://github.com/python/cpython/commit/dcc8ce44c74492670e6bfbde588a2acbf8f365e0 ---

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Steve Dower
Changes by Steve Dower : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: agreed the repr(self) name being surfaced is a regression even if technically "correct". your patch makes sense, but i think a nicer variant of it will be to name the thread ("Executor_" + str(num_threads)) when no thread_name_prefix is supplied. --

[issue30616] Cannot use functional API to create enum with zero values

2017-06-21 Thread Ethan Furman
Ethan Furman added the comment: 3.7 fixed, now need 3.6. -- stage: test needed -> backport needed ___ Python tracker ___ ___ Python-bu

[issue27620] IDLE: Add keyboard equivalents for mouse actions.

2017-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: ConfigDialgo.__init__ has commented out key bindings for the buttons, including Esc for [Cancel]. We should establish 'IDLE Dialog Conventions', document (add to README.txt?), and follow consistently. #27621 is about polishing Query box behavior. It should

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-21 Thread Kevin Keating
New submission from Kevin Keating: If I use the Python 64-bit 2.7.13 Windows installer and install to C:\Program Files\Python27, then the Scripts folder doesn't get created and pip doesn't get installed. If I uninstall Python and reinstall it to C:\Python27, C:\Programs\Python27, or "C:\Path

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset c90e96015085784df86632b26059b19c80cbfc97 by Victor Stinner (haney) in branch 'master': bpo-30183: Fixes HP-UX cc compilation error in pytime.c (#1351) https://github.com/python/cpython/commit/c90e96015085784df86632b26059b19c80cbfc97 --

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-21 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- pull_requests: +2365 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2017-06-21 Thread Grzegorz Grzywacz
Grzegorz Grzywacz added the comment: Existing mock implementation already has that feature. Mock attributes can be limited with `spec` attribute. >>> inner_m = Mock(spec=["method2"], **{"method2.return_value": 1}) >>> m = Mock(spec=["method1"], **{"method1.return_value": inner_m}) >>> >>> m.m

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

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab3b0ade505ce07a3d5ec4fbc991a154242732e6 by Victor Stinner (Jeremy Kloth) in branch '2.7': bpo-29591: Update VS project files (#2310) https://github.com/python/cpython/commit/ab3b0ade505ce07a3d5ec4fbc991a154242732e6 -- _

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-21 Thread Steve Dower
Steve Dower added the comment: I wonder if the custom action to run _ensurepip isn't running as admin... that would be the only thing I can think of. Can you try running the installer with: msiexec /l*vx log.txt /i path_to.msi Then attach the generated log.txt file? We might be able to see

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2017-06-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've now added unittests for this change. -- nosy: +gpolo ___ Python tracker ___ ___ Python-bugs-lis

[issue30549] ProcessPoolExecutor hangs forever if the object raises on __getstate__

2017-06-21 Thread Grzegorz Grzywacz
Grzegorz Grzywacz added the comment: This is already reported and patch was proposed. Here: #30006 -- nosy: +grzgrzgrz3 ___ Python tracker ___ ___

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: On bugs.python.org tracker a number prefixed by '#' refers an issue number on this tracker. On the other hand, PR2306 or PR 2306 should do what you meant. https://docs.python.org/devguide/triaging.html#generating-special-links-in-a-comment In a pull request,

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: +2366 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2017-06-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: Just a note with the PR, the changes to PCbuild\pyexpat.vcxproj and PCbuild\_elementtree.vcxproj should probably be merged forward as well. On Wed, Jun 21, 2017 at 1:14 PM, STINNER Victor wrote: > > STINNER Victor added the comment: > > > New changeset ab3b0ade50

[issue29981] Update Index for set, dict, and generator 'comprehensions'

2017-06-21 Thread R. David Murray
R. David Murray added the comment: On the PR Berker wrote: I'm wondering if we should still advertise the use of set([...]). We replaced all instances of it with set literals in the stdlib. set([...]) is part of the language, and the python documentation is also a specification of the lang

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hi Charles. Welcome to CPython development and its issue tracker. Everyone starts 'new at this'. Can you please describe, in detail, a simple, minimal example of how to invoke the existing behavior that you want to change, then what change you want to see.

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-21 Thread desbma
desbma added the comment: Thank you Gregory for the insight and new patch. Can this be merged in the 3.6 branch as well (targeting the 3.6.3 release)? -- ___ Python tracker ___

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, what should I do to answer you line-ending question, or do you still need the info? Victor Stinner reopened #27425, which was about the exact same line-ending failures. -- ___ Python tracker

[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/x86%20Windows%20XP%20VS9.0%202.7/builds/203/steps/test/logs/stdio ... 0:18:49 [401/404] test_zipimport passed -- running: test_threading (158 sec) 0:18:52 [402/404] test_zipimport_support passed -- running: test_threading

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

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: Jeremy Kloth added the comment: > Just a note with the PR, the changes to PCbuild\pyexpat.vcxproj and > PCbuild\_elementtree.vcxproj should probably be merged forward as > well. PR 2310. Yes, I agree. Can you please propose patches for master, and then 3.6 and 3

[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%202.7/builds/129/steps/test/logs/stdio ... 0:06:35 [402/404] test_signal passed (46 sec) -- running: test_lib2to3 (63 sec), test_threading (395 sec) 0:07:01 [403/404] test_lib2to3 passed (8

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

2017-06-21 Thread Joel Hillacre
Joel Hillacre added the comment: > Ping the issue again next week if I don't get to it this weekend. I am a week late, but here is a ping. -- ___ Python tracker ___

[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2367 ___ 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-21 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset f3cffd2b7879d209f982de899b782fb89cfc410a by Yury Selivanov (Dino Viehland) in branch 'master': bpo-30604: clean up co_extra support (#2144) https://github.com/python/cpython/commit/f3cffd2b7879d209f982de899b782fb89cfc410a -- ___

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2017-06-21 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2368 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2017-06-21 Thread Mario Corchero
Mario Corchero added the comment: Whilst I agree that using spec can be used for a similar purpose and I did not know about being able to do nested definitions via the arguments (the **{"method1.return_value": 1}, really cool!) I find the idea of allowing users to halt the mock generation real

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

2017-06-21 Thread Segev Finer
New submission from Segev Finer: We are getting: Warning C4005 'HAVE_MEMMOVE': macro redefinition _elementtree c:\users\segev\prj\python\cpython\modules\expat\winconfig.h 34 Warning C4267 '=': conversion from 'size_t' to 'unsigned char', possible loss of data _elementtree

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

2017-06-21 Thread STINNER Victor
New submission from STINNER Victor: Example where the test hangs after at the 48th run: [haypo@freebsd ~/prog/python/2.7]$ ./python -m test -F -m test.test_threading.ConditionTests.test_notify -v test_threading (...) 0:00:10 [ 47] test_threading test_notify (test.test_threading.ConditionTe

[issue30351] [2.7] regrtest hangs on Python 2.7 (test_threading?)

2017-06-21 Thread STINNER Victor
Changes by STINNER Victor : -- title: regrtest hangs on x86 Windows XP 2.7 -> [2.7] regrtest hangs on Python 2.7 (test_threading?) ___ Python tracker ___ ___

[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-30727: "[2.7] test_threading.ConditionTests.test_notify() hangs randomly on FreeBSD on Python 2.7". -- ___ Python tracker ___ ___

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

2017-06-21 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2369 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2017-06-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: test.test_threading.ConditionTests.test_notify() tests the threading._Condition. threading._Condition uses internally a threading._RLock. threading._RLock uses an internal lock created with thread.allocate_lock(). thread.allocate_lock() calls internally PyThre

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

2017-06-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +pitrou, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: Oh, I reproduced the bug on Linux as well by running "./python -m test -F -m test.test_threading.ConditionTests.test_notify -v test_threading" 6 times in different terminals: the test hangs in two terminal after 2508 and 2262 runs. --

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

2017-06-21 Thread STINNER Victor
Changes by STINNER Victor : -- title: [2.7] test_threading.ConditionTests.test_notify() hangs randomly on FreeBSD on Python 2.7 -> [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7 ___ Python tracker

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

2017-06-21 Thread Brett Cannon
Brett Cannon added the comment: Should this be closed since the all PRs got merged? -- ___ Python tracker ___ ___ Python-bugs-list mai

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

2017-06-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: PR 2152 is not yet ported to master. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2017-06-21 Thread Yury Selivanov
Yury Selivanov added the comment: It doesn't need to be, it's only for 3.6 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: notify_bug.py: script close totest.test_threading.ConditionTests.test_notify() but different: * _wait() sleeps 1 nanosecond rather than 10 ms * log many messages into stdout (file descriptor 1) using os.write() It's quite easy to reproduce the bug with this sc

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

2017-06-21 Thread Yury Selivanov
Yury Selivanov added the comment: Closing the issue. Thank you Dino for working on this! -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

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

2017-06-21 Thread Michael Foord
Michael Foord added the comment: I don't see what this buys over spec and autospec. I'd be inclined to close it without a compelling use case beyond what is already supported. -- ___ Python tracker ___

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

2017-06-21 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-8799 "Hang in lib/test/test_threading.py" and the commit 020af2a2bc4708215360a3793b5a1790e15d05dd which added two _wait() calls to ConditionTests._check_notify(). -- ___ Python tracker

[issue5680] Command-line arguments when running in IDLE

2017-06-21 Thread veganaiZe
veganaiZe added the comment: I've created a simple work-around for those who don't want to wait for the next release(s) of IDLE. It's available on SO: https://stackoverflow.com/a/44687632/5039027 -- ___ Python tracker

[issue30728] IDLE: Modernize configdialog code.

2017-06-21 Thread Terry J. Reedy
New submission from Terry J. Reedy: Depending on the file, modernizing includes: * Add docstrings. * Change non-class names with caps to PEP8 no-caps names; this often means, for example, changing embedded 'A' to '_a'. * Make most comments be sentences, like this sentence. * Review and possib

[issue30728] IDLE: Modernize configdialog code.

2017-06-21 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2370 ___ 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-21 Thread STINNER Victor
STINNER Victor added the comment: The bug occurs when notify(n) is called while less than n threads are waiting in cond.wait(): when some threads didn't reach cond.wait() yet. The synchronization code is very fragile and depends on time. The issue was worked again in the master banch by adding

  1   2   >