[issue19180] some RFC references could be updated

2017-06-09 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: The associated PR has been reviewed and could be merged. -- nosy: +matrixise ___ Python tracker ___ ___

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

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: @Ned Deily: Hey, Nathaniel wants to backport the commit 4ae01496971624c75080431806ed1c08e00f22c7 which changes how the C signal handler of CPython. There is a low risk of regression, it can be seen as a backward incompatible change. I'm not super excited to

[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-09 Thread Richard S. Gordon
New submission from Richard S. Gordon: Generated colors appear to be corrupted by overloading text attribute with specified foreground and background colors. This can be demonstrated by running test_tsWxColorPalette.py in Python 3x (developer-sandbox) found in https://github.com/rigordo959/ts

[issue30540] regrtest: add --matchfile option

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset ef8320cf6f09b659c63bfb188bf45dbcae556762 by Victor Stinner in branch 'master': bpo-30540: regrtest: add --matchfile option (#1909) https://github.com/python/cpython/commit/ef8320cf6f09b659c63bfb188bf45dbcae556762 --

[issue30540] regrtest: add --matchfile option

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: > But what about doctests? They are run unconditionally. Sorry, I don't know how to handle them. I only tried to make a small enhancement for my "bisect" usecase. If you see a way to handle them, don't hesitate to propose a patch! I would prefer to have time

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

2017-06-09 Thread Nathaniel Smith
Nathaniel Smith added the comment: I think you mean it's backwards *compatible*? There's definitely no change in APIs or ABIs or anything, all that changes is the order of some statements inside Python's signal handler. (We used to we write to the magic wakeup fd and then set a flag saying a s

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

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: > I think you mean it's backwards *compatible*? I mean incompatible since it changes the behaviour in a subtle way. -- ___ Python tracker ___ _

[issue30523] unittest: add --list-tests option to only display the list of test names, don't run tests

2017-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The main problem is doctests. Numerous "doctest.DocTestCase.runTest" look useless and confusing. Running tests instead of listing them is bad. It is not clear why in one cases --list-tests outputs full qualified test names, while in other cases it outputs o

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

2017-06-09 Thread Nathaniel Smith
Nathaniel Smith added the comment: But, by that definition, like... every change is backwards incompatible. I'm pretty confident that no-one was relying on this race condition. I can't even figure out what that would mean. -- ___ Python tracker

[issue30610] libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread Duy Phan Thanh
New submission from Duy Phan Thanh: Python's libexpat library is outdated and vulnerable to CVE-2016-0718 https://sourceforge.net/p/expat/bugs/537/ which can cause remote code execution through malicious xml files. The attached POC crashed both python 2.7 and python 3.5 on my windows machine.

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread Duy Phan Thanh
Changes by Duy Phan Thanh : -- title: libexpat vulnerable to CVE-2016-0718 -> Python's libexpat vulnerable to CVE-2016-0718 ___ Python tracker ___ __

[issue30611] Windows HTML Help always opens maximized

2017-06-09 Thread Christian Ullrich
New submission from Christian Ullrich: The CHM help files on Windows always open maximized. I would prefer they opened in a regular window instead, because the current behavior is annoying. Fix: In Tools/msi/doc/doc.wxs line 34, change 'Show="maximized"' to 'Show="normal"'. -- assigne

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: What is the first expat version which isn't vulnerable? I guess that this issue only impacts platforms which don't use --with-system-expat. Linux distributions use the system expat library for example. Currently, the Python master branch embeds a copy of expa

[issue30612] Unusual Windows registry path syntax

2017-06-09 Thread Christian Ullrich
New submission from Christian Ullrich: In 3.6.1, the manual, section 3.1.3, has this to say: "Your administrator will need to activate the “Enable Win32 long paths” group policy, or set the registry value HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled to 1."

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: I add this vulnerability to Python security document: http://python-security.readthedocs.io/vuln/cve-2016-0718_expat_bug_537.html -- ___ Python tracker

[issue30601] [Windows] test_winconsoleio leaks references

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: Eryk Sun: "Segev included a fix for this leak in PR 1927 for bpo30555, but I suppose it's better to fix it separately." I saw this PR but it changes a lot of code. I didn't notice that it fixes this bug as well. I chose to fix quickly the refleak to be able t

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

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: Eryk: do you want to work on a PR to fix it? It seems like you understand well the bug! -- ___ Python tracker ___ _

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread Duy Phan Thanh
Duy Phan Thanh added the comment: According to their changelog here https://github.com/libexpat/libexpat/blob/master/expat/Changes The vulnerability was fixed in expat 2.2.0 and yes it does not affect system that use --with-system-expat. -- ___ Pyth

[issue19180] some RFC references could be updated

2017-06-09 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 63c2c8ac17750ba2be2cfc4e339cae1f4edee54f by Nick Coghlan (Chandan Kumar) in branch 'master': bpo-19180: Updated references for RFC 1750, RFC 3280 & RFC 4366 (GH-148) https://github.com/python/cpython/commit/63c2c8ac17750ba2be2cfc4e339cae1f4edee54f

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2087 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue19180] some RFC references could be updated

2017-06-09 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I have checked in 3.4, 3.5 and 3.6, it's the version 2.1.1 excepted for 2.7, 3.3 it's the version 2.1.0 -- nosy: +matrixise ___ Python tracker ___

[issue30388] ndbm can't iterate through values on OS X

2017-06-09 Thread Forest Gregg
Forest Gregg added the comment: A different user: otool -L $(python3.6 -c 'import _dbm;print(_dbm.file)') /usr/local/var/pyenv/versions/3.6.1/lib/python3.6/lib-dynload/_dbm.cpython-36m-darwin.so: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.50.2) -- __

[issue30608] argparse calculates string widths incorrectly

2017-06-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't really understand your example code. What result did you expect? The output shown in Github seems correct to me: optional arguments: -h, --helpshow this help message and exit --language1 XX Lanugage for o

[issue30608] argparse calculates string widths incorrectly

2017-06-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: By the way, perhaps a simpler demonstration which is more likely to render correctly on most people's systems would be to use Latin-1 combining characters: py> s1 = 'àéîõü' py> s2 = unicodedata.normalize('NFD', s1) # decompose into combining chars py> s1, s2 (

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

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

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset f0ff849adc6b4a01f9d1f08d9ad0f1511ff84541 by Victor Stinner in branch '3.6': bpo-30524: Fix _PyStack_UnpackDict() (#1886) https://github.com/python/cpython/commit/f0ff849adc6b4a01f9d1f08d9ad0f1511ff84541 -- __

[issue29286] Use METH_FASTCALL in str methods

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset f0ff849adc6b4a01f9d1f08d9ad0f1511ff84541 by Victor Stinner in branch '3.6': bpo-30524: Fix _PyStack_UnpackDict() (#1886) https://github.com/python/cpython/commit/f0ff849adc6b4a01f9d1f08d9ad0f1511ff84541 -- __

[issue29259] Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset f0ff849adc6b4a01f9d1f08d9ad0f1511ff84541 by Victor Stinner in branch '3.6': bpo-30524: Fix _PyStack_UnpackDict() (#1886) https://github.com/python/cpython/commit/f0ff849adc6b4a01f9d1f08d9ad0f1511ff84541 -- __

[issue30613] Distutils register command creates non-standard multipart data

2017-06-09 Thread Kaeptm Blaubaer
Changes by Kaeptm Blaubaer : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30613] Distutils register command creates non-standard multipart data

2017-06-09 Thread Kaeptm Blaubaer
New submission from Kaeptm Blaubaer: It is using b"\n" newline instead of b"\r\n". -- components: Distutils messages: 295518 nosy: Kaeptm Blaubaer, dstufft, merwok priority: normal severity: normal status: open title: Distutils register command creates non-standard multipart data version

[issue19180] some RFC references could be updated

2017-06-09 Thread Nick Coghlan
Changes by Nick Coghlan : -- pull_requests: +2089 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29478] email.policy.Compat32(max_line_length=None) not as documented

2017-06-09 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2090 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29478] email.policy.Compat32(max_line_length=None) not as documented

2017-06-09 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2091 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30600] Error message incorrect when index is called with keyword argument ("[].index(x=2)")

2017-06-09 Thread SylvainDe
SylvainDe added the comment: Thanks Serhiy Storchaka for the tip! I am currently investigating how the argument clinic works. I have used git bisect to find when the issue got introduced. commit fdd42c481edba4261f861fc1dfe24bbd79b5a17a bpo-20185: Convert list object implementation to Argument

[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: Hum, it may be a regression a recent change like the commit bc50f03db4f58c869b78e98468e374d7e61f1227: bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc (#1683) -- ___ Python tracker

[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: We started to get *random* failures of test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn since a few days. I may be related to this change. Can you please take a look at bpo-30595? -- nosy: +haypo _

[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

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

[issue19180] some RFC references could be updated

2017-06-09 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset c422959daca0598fabbefa5de4417ebce3b1da06 by Nick Coghlan in branch '3.6': [3.6] bpo-19180: Updated references for RFC 1750, RFC 3280 & RFC 4366 https://github.com/python/cpython/commit/c422959daca0598fabbefa5de4417ebce3b1da06 -- _

[issue30600] Error message incorrect when index is called with keyword argument ("[].index(x=2)")

2017-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This commit only exposed existing bug in Argument Clinic. The same bug should be exposed for other methods that takes no keyword arguments converted to Argument Clinic. -- ___ Python tracker

[issue19180] some RFC references could be updated

2017-06-09 Thread Nick Coghlan
Nick Coghlan added the comment: And merged. Thanks Chandan for the update, and everyone else for the comments and triage :) -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30570] issubclass segfaults on objects with weird __getattr__

2017-06-09 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue30600] Error message incorrect when index is called with keyword argument ("[].index(x=2)")

2017-06-09 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-06-09 Thread Grzegorz Grzywacz
Grzegorz Grzywacz added the comment: Looks like build bot is too slow for timeout=0.1. I am guessing `0.1` is too low because we have wrong condition in Queue.get. It should be. diff --git a/Lib/multiprocessing/queues.py b/Lib/multiprocessing/queues.py index dda03dd..42e9884 100644 --- a/Lib/

[issue29478] email.policy.Compat32(max_line_length=None) not as documented

2017-06-09 Thread R. David Murray
R. David Murray added the comment: Looks like it just needs a NEWS entry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-06-09 Thread Grzegorz Grzywacz
Grzegorz Grzywacz added the comment: of course it should be `if not`: diff --git a/Lib/multiprocessing/queues.py b/Lib/multiprocessing/queues.py index dda03dd..514f991 100644 --- a/Lib/multiprocessing/queues.py +++ b/Lib/multiprocessing/queues.py @@ -101,7 +101,7 @@ class Queue(object):

[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

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

[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: > I am guessing `0.1` is too low because we have wrong condition in Queue.get. > It should be. I'm not sure that the buildbot took this code path, but I like your suggestion. Checking the reader in non-blocking mode is cheap. poll() with timeout < 0 works as

[issue29951] PyArg_ParseTupleAndKeywords exception messages containing "function"

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

[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: The bug should now be fixed. EINVAL is now also ignored even if the process is still running, same behaviour than UNIX with EPIPE. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracke

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-06-09 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: This bug affects also the 3.6 branch. Can the fix be backported? -- ___ Python tracker ___ __

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5eb7075915f0509c5027376bda0e6d9c1e505a2c by Serhiy Storchaka (Marco Buttu) in branch 'master': bpo-30217: Add the operators ~ and | to the index (#1502) https://github.com/python/cpython/commit/5eb7075915f0509c5027376bda0e6d9c1e505a2c

[issue24755] asyncio.wrap_future undocumented

2017-06-09 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset af609a00a64fd58bd67c102f208ed9fe15c2748d by Mariatta in branch '3.6': bpo-24755: Document asyncio.wrap_future (GH-603) (GH-2019) https://github.com/python/cpython/commit/af609a00a64fd58bd67c102f208ed9fe15c2748d -- _

[issue24755] asyncio.wrap_future undocumented

2017-06-09 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 3fc2fa8cb909cb58325f56deb5cd500d278e4102 by Mariatta in branch '3.5': bpo-24755: Document asyncio.wrap_future (GH-603) (GH-2020) https://github.com/python/cpython/commit/3fc2fa8cb909cb58325f56deb5cd500d278e4102 -- _

[issue24755] asyncio.wrap_future undocumented

2017-06-09 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: PR merged and backported to 3.6 and 3.5. Thanks :) -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker __

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3b5cf85edc188345668f987c824a2acb338a7816 by Victor Stinner in branch 'master': bpo-30524: Write unit tests for FASTCALL (#2022) https://github.com/python/cpython/commit/3b5cf85edc188345668f987c824a2acb338a7816 -- ___

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

2017-06-09 Thread Ned Deily
Ned Deily added the comment: It sounds like a bug to me, and thus suitable to backport, but it certainly would be worth getting other opinions since this is a tricky and critical area. Antoine, Steve, others: thoughts? -- nosy: +pitrou, steve.dower ___

[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-09 Thread Zachary Ware
Zachary Ware added the comment: This is going to need a significantly reduced reproducer that doesn't rely on anything outside the standard library before we can do anything with it, especially since Cygwin support is currently tenuous at best. erik.bray or masamoto may have more insight, tho

[issue30599] os.register_at_fork(): allow to unregister callbacks -- test_threaded_import leaks references

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

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

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

[issue30611] Windows HTML Help always opens maximized

2017-06-09 Thread Zachary Ware
Zachary Ware added the comment: Does 'Show="normal"' cause the usual behavior of "do whatever it was doing when last closed"? Does 'Show=' need to be specified? Would you like to submit a PR? -- versions: +Python 3.5, Python 3.7 ___ Python tracker

[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: > Generated colors appear to be corrupted by overloading text attribute with > specified foreground and background colors. Python doesn't contain anything in its stdlib to control the color of the terminal. Are you sure that you posted your bug report at the r

[issue25958] Implicit ABCs have no means of "anti-registration"

2017-06-09 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 57161aac5eb9bcb0b43e551a1937ff0a84c1ec52 by Guido van Rossum (Jelle Zijlstra) in branch 'master': bpo-30266: support "= None" pattern in AbstractContextManager (#1448) https://github.com/python/cpython/commit/57161aac5eb9bcb0b43e551a1937ff0a84c1

[issue30266] AbstractContextManager should support __method__ = None

2017-06-09 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 57161aac5eb9bcb0b43e551a1937ff0a84c1ec52 by Guido van Rossum (Jelle Zijlstra) in branch 'master': bpo-30266: support "= None" pattern in AbstractContextManager (#1448) https://github.com/python/cpython/commit/57161aac5eb9bcb0b43e551a1937ff0a84c1

[issue30614] [EASY][2.7] testInitNonExistentFile() of test_bz2 leaks references

2017-06-09 Thread STINNER Victor
New submission from STINNER Victor: haypo@selma$ ./python -m test -R 3:3 -m testInitNonExistentFile test_bz2 Run tests sequentially 0:00:00 [1/1] test_bz2 beginning 6 repetitions 123456 .. test_bz2 leaked [10, 10, 10] references, sum=30 1 test failed: test_bz2 Total duration: 81 ms Tests

[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-09 Thread STINNER Victor
New submission from STINNER Victor: haypo@selma$ ./python -m test -R 3:3 -m test_recursive_repr test_xml_etree_c Run tests sequentially 0:00:00 [1/1] test_xml_etree_c beginning 6 repetitions 123456 .. test_xml_etree_c leaked [4, 4, 4] references, sum=12 1 test failed: test_xml_etree_c To

[issue30575] Python interpreter crashes on macOS

2017-06-09 Thread Yibo Wang
Yibo Wang added the comment: It's a bug from cffi because the interpreter won't crash when using ctypes only without cffi. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread Ned Deily
Ned Deily added the comment: Isn't this a duplicate of Issue29591 ? -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list ma

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Yep, it's similar -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30266] AbstractContextManager should support __method__ = None

2017-06-09 Thread Guido van Rossum
Guido van Rossum added the comment: This should be backported to 3.6. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-09 Thread Richard S. Gordon
Richard S. Gordon added the comment: > On Jun 9, 2017, at 11:16 AM, STINNER Victor wrote: > > > STINNER Victor added the comment: > >> Generated colors appear to be corrupted by overloading text attribute with >> specified foreground and background colors. > > Python doesn't contain anythin

[issue30614] [EASY][2.7] testInitNonExistentFile() of test_bz2 leaks references

2017-06-09 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2097 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30614] [EASY][2.7] testInitNonExistentFile() of test_bz2 leaks references

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: The leaking unit test was added to fix a bug found by fuzzing: see bpo-19878. To fix the bug, I suggest to: 1) Add a clear method: extract most of BZ2File_dealloc() code except of code to clear the lock and the tp_free. Create a new BZ2File_clear() function wh

[issue30266] AbstractContextManager should support __method__ = None

2017-06-09 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- assignee: -> Mariatta nosy: +Mariatta stage: -> backport needed ___ Python tracker ___ ___ Python-bu

[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: The leak is in the element_repr() function of Modules/_elementtree.c. Py_ReprEnter() creates an internal list to track objects, and so requires that Py_ReprLeave() is always called, even on error, to destroy these objects. Is it the case here? ;-) --

[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-09 Thread Richard S. Gordon
Richard S. Gordon added the comment: > On Jun 9, 2017, at 11:59 AM, Richard S. Gordon wrote: > > >> On Jun 9, 2017, at 11:16 AM, STINNER Victor wrote: >> >> >> STINNER Victor added the comment: >> >>> Generated colors appear to be corrupted by overloading text attribute with >>> specified

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: I opened a thread on python-dev to ask if we could drop our embedded copy of libexpat: https://mail.python.org/pipermail/python-dev/2017-June/148287.html -- ___ Python tracker ___

[issue29951] PyArg_ParseTupleAndKeywords exception messages containing "function"

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset f9f1ccace395a8f65b60dc12567a237b4002fd18 by Victor Stinner (Serhiy Storchaka) in branch 'master': Fix regression in error message introduced in bpo-29951. (#2028) https://github.com/python/cpython/commit/f9f1ccace395a8f65b60dc12567a237b4002fd18

[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: What is your operating system? How did you install ncurses? What is your ncurses version? On Linux, Python is linked dynamically to the system ncurses library. Python is built using system ncurses headers. -- ___ P

[issue30612] Unusual Windows registry path syntax

2017-06-09 Thread R. David Murray
Changes by R. David Murray : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.7 ___ Python tracker ___ __

[issue30614] [EASY][2.7] testInitNonExistentFile() of test_bz2 leaks references

2017-06-09 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2098 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30612] Unusual Windows registry path syntax

2017-06-09 Thread Steve Dower
Steve Dower added the comment: Pull requests welcome, but as someone who lives in the Windows API day in and day out, I can vouch for it being the normal abbreviated way of specifying a fully qualified registry value. -- priority: normal -> low ___

[issue30611] Windows HTML Help always opens maximized

2017-06-09 Thread Steve Dower
Steve Dower added the comment: Opening in normal size (i.e. randomly positioned somewhere on the screen) is equally annoying. PR is welcome, but I won't be approving it. Someone else might. Certainly doesn't need to be backported - this is not a bug. -- assignee: docs@python -> compo

[issue30612] Unusual Windows registry path syntax

2017-06-09 Thread Christian Ullrich
Christian Ullrich added the comment: Out of curiosity, can you point me to an example or two? I have been living with, though not in, Win32 for quite a few years myself, and I can say with certainty that I have never seen this notation before in my life. Other than that, PR on the way soonish.

[issue30612] Unusual Windows registry path syntax

2017-06-09 Thread Steve Dower
Steve Dower added the comment: There's a handful of references in https://docs.microsoft.com/en-us/visualstudio/ide/walkthrough-creating-a-multiple-computer-build-environment, though TBH most of the docs written by actual doc writers use more complicated sentences to avoid it. It's also the s

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

2017-06-09 Thread Gerrit Holl
New submission from Gerrit Holl: The OO API allows to create empty enums, i.e. without any values. However, the functional API does not, as this will result in an IndexError as shown below: In [1]: import enum In [2]: class X(enum.IntFlag): pass In [3]: Y = enum.IntFlag("Y", [])

[issue30611] Windows HTML Help always opens maximized

2017-06-09 Thread Christian Ullrich
Christian Ullrich added the comment: I'll have to start with the ceterae again, won't I? OK, since you asked: Ceterum censeo: This behavior could have been easily adapted to differing local requirements if MSI had been used as the distribution package format by appropriately transforming the

[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-06-09 Thread Neil Schemenauer
Neil Schemenauer added the comment: This patch works for me as well. Debian testing, kernel: Linux version 4.9.0-3-amd64 (debian-ker...@lists.debian.org) (gcc version 6.3.0 20170425 (Debian 6.3.0-16) ) #1 SMP Debian 4.9.25-1 (2017-05-02) In the 3.6.1 Python release, test_socket fails with: t

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

2017-06-09 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2017-06-09 Thread Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman components: +Library (Lib) priority: normal -> low stage: -> test needed versions: +Python 3.7 ___ Python tracker ___ ___

[issue30576] http.server should support HTTP compression (gzip)

2017-06-09 Thread Glenn Linderman
Glenn Linderman added the comment: I don't understand fully what you are planning here: to pre-compress the files, or to compress on the fly as mentioned by another commenter? I've implemented, in a CGI behind http.server, both .gz and .br (gzip and brotli) compression, following these rules:

[issue28994] Misc fixes and cleanups in error handling C code

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

[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-09 Thread Richard S. Gordon
Richard S. Gordon added the comment: > On Jun 9, 2017, at 12:32 PM, STINNER Victor > wrote: > > > STINNER Victor added the comment: > > What is your operating system? How did you install ncurses? What is your > ncurses version? > > On Linux, Python is linked d

[issue28994] Misc fixes and cleanups in error handling C code

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

[issue30014] Speedup DefaultSelectors.modify() by 2x

2017-06-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset fbfaa6fd57f8dc8a3da808acb8422370fad2f27b by Victor Stinner (Giampaolo Rodola) in branch 'master': bpo-30014: make poll-like selector's modify() method faster (#1030) https://github.com/python/cpython/commit/fbfaa6fd57f8dc8a3da808acb8422370fad2f27b

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

2017-06-09 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue27585] asyncio.Lock deadlock after cancellation

2017-06-09 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2101 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30335] Document deprecated alias of assertNotRegex

2017-06-09 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 74921ed8941fce14c2a53dc7280f43eb01fe4ed8 by Mariatta (Jim Fasarakis-Hilliard) in branch 'master': bpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536) https://github.com/python/cpython/commit/74921ed8941fce14c2a53dc7280f43e

[issue30335] Document deprecated alias of assertNotRegex

2017-06-09 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- assignee: -> docs@python components: +Documentation -Tests nosy: +docs@python stage: -> backport needed versions: +Python 3.5, Python 3.6 ___ Python tracker ___

  1   2   >