[issue33751] Failed separate testTruncateOnWindows in test_file

2018-06-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7069 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue33778] update Unicode database to 11.0

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Benjamin: would you mind to explain how to update Unicode in Python? I would like to document it, if you are not available for example, or don't want to do it anymore. I'm asking for my general idea of having at least two maintainers per "CPython maintenanc

[issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue33779] Error while installing python 3.6.5 on windows 10

2018-06-06 Thread Siddhartha Bose
New submission from Siddhartha Bose : Hi Team, I am getting below error while trying to install python 3.6.5 on windows 10. 0X80070005 Access is denied. Logs attached. Also when I see control panel it shows me under program and feartures however unable to uninstall. I am logged in as adm

[issue33779] Error while installing python 3.6.5 on windows 10

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Extract of logs: [48E0:48FC][2018-06-06T15:06:11]i360: Creating a system restore point. [48E0:48FC][2018-06-06T15:06:11]w363: Could not create system restore point, error: 0x80070514. Continuing... [4B7C:4B80][2018-06-06T15:06:11]i370: Session begin, registra

[issue33765] AppVeyor didn't start on my PR 7365

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: AppVeyor is back! I close the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue33764] AppVeyor builds interrupted before tests complete

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Steve Dower: "Are we sure we haven't actually regressed something here and it's actually taking more resources? (...)" According to AppVeyor support, there was an issue on their side: "Regarding disk quota -- we are extremely sorry. This was not your fault,

[issue33780] [subprocess] Better Unicode support for shell=True on Windows

2018-06-06 Thread Yoni Rozenshein
New submission from Yoni Rozenshein : In subprocess, the implementation of shell=True on Windows is to launch a subprocess with using {comspec} /c "{args}" (normally comspec=cmd.exe). By default, the output of cmd is encoded with the "active" codepage. In Python 3.6, you can decode this using

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
New submission from STINNER Victor : Extract of Python 2.7, Modules/audioop.c: static int fbound(double val, double minval, double maxval) { if (val > maxval) val = maxval; else if (val < minval + 1) val = minval; return val; } Example of usage: double factor,

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Another variant seen on AppVeyor (PR 7439, master branch): https://ci.appveyor.com/project/python/cpython/build/3.8build16980 == ERROR: test_create_connection_ssl_failed_certificate (test.te

[issue33687] uu.py calls os.path.chmod which doesn't exist

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Is the uu module still maintained? Christian Heimes wants to remove the module: https://github.com/tiran/peps/blob/oldbatteries/pep-.rst Xiang Zhang made a change in uu last year to add a new feature: new backtick optional parameter, bpo-30103. -

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7070 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Oh, fbound() cast to (int) has been done by... myself :-D commit f2b9a340ef143099726fb642951410e4ad793c7f Author: Victor Stinner Date: Tue May 7 23:49:15 2013 +0200 audioop: explicit cast to fix a compiler warning diff --git a/Modules/audioop.c b/Modu

[issue31044] FAIL: test_makedev (test.test_posix.PosixTester) on AMD64 FreeBSD CURRENT

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7071 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33782] VSTS Windows-PR: internal error

2018-06-06 Thread STINNER Victor
New submission from STINNER Victor : On my PR https://github.com/python/cpython/pull/7447 "VSTS: Windows-PR" failed: "Windows-PR_20180606.13 failed". https://python.visualstudio.com/cpython/_build?buildId=6469 "The request was failed due to an internal service error. Please try again." -

[issue33782] VSTS Windows-PR: internal error

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: By the way, it seems like tests were not run on the Linux-PR job: https://python.visualstudio.com/cpython/_build?buildId=6467&tab=summary&_a=summary Linux-PR / Build Linux-PR_20180606.13: "No test runs are available for this build." "Retained state Build no

[issue33782] VSTS Windows-PR: internal error

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- assignee: -> steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue33687] uu.py calls os.path.chmod which doesn't exist

2018-06-06 Thread R. David Murray
R. David Murray added the comment: The email module uses it, so I would object to its being removed. It may not be used often (probably only when working with old email archives), but there's no good reason I can see to break something that currently works. -- nosy: +r.david.murray

[issue33687] uu.py calls os.path.chmod which doesn't exist

2018-06-06 Thread Xiang Zhang
Xiang Zhang added the comment: I modified it for the feature, not maintain it. I remember at that time I get the feeling it's somewhat strange there are two APIs, with similar functionality resides in two modules, need to be updated. -- nosy: -r.david.murray ___

[issue33687] uu.py calls os.path.chmod which doesn't exist

2018-06-06 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue22454] Adding the opposite function of shlex.split()

2018-06-06 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Vinay, You made the most recent changes to shlex, so I was wondering what you thought of this suggestion. Thanks! -- nosy: +cheryl.sabella, vinay.sajip ___ Python tracker

[issue22454] Adding the opposite function of shlex.split()

2018-06-06 Thread R. David Murray
R. David Murray added the comment: I like it, myself, though there is some danger in promoting the idea that this is a "safe" operation. It theoretically should be, but it increases the attack surface slightly if you actually use it (that is, using shell=False is always safer, by at least a

[issue33782] VSTS Windows-PR: internal error

2018-06-06 Thread Steve Dower
Steve Dower added the comment: I'd already started discussing this with the VSTS team, it seems to be a bug on their side. The "build not retained" state just means it'll get cleaned up after seven days. People with login access can mark a build to be kept permanently, which changes that st

[issue33779] Error while installing python 3.6.5 on windows 10

2018-06-06 Thread Steve Dower
Steve Dower added the comment: Did you have a previous install? It looks like it is registered but somehow you don't have the ability to replace it. If you're comfortable with using regedit.exe, you could try renaming SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9d1b786e-0fd4-4386-ab

[issue31044] FAIL: test_makedev (test.test_posix.PosixTester) on AMD64 FreeBSD CURRENT

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset b5d702e5e7291eed21666ed931da2a5e92c28a65 by Victor Stinner in branch 'master': bpo-31044, test_posix: Reenable makedev() tests on FreeBSD (#7449) https://github.com/python/cpython/commit/b5d702e5e7291eed21666ed931da2a5e92c28a65 -- ___

[issue31044] FAIL: test_makedev (test.test_posix.PosixTester) on AMD64 FreeBSD CURRENT

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: I enabled again the test in the master branch, the FreeBSD kernel bug has been fixed 10 months ago: * https://svnweb.freebsd.org/base?view=revision&revision=321920 * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221048 Technically, we could reenable the

[issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified

2018-06-06 Thread Al-Scandar Solstag
Al-Scandar Solstag added the comment: Hi Raymond, I think I understand what you mean, and would suggest something along the lines of: """ Note that lru_cache only guarantees cache matches on the exact way function arguments are specified, so the following ways of calling 'def f(a, b=7)' are

[issue33782] VSTS Windows-PR: internal error

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: > The "build not retained" state just means it'll get cleaned up after seven > days. Oh ok. But I'm confused, I don't see where are the logs. I clicked on Timeline, Code coverage, Tests: all are empty. In the logs ZIP, I cannot see any command related to Py

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 45e4efba7fa2abe61d25e4f8b5bf482e19ff1280 by Victor Stinner in branch 'master': bpo-33781: audioop: enhance rounding double as int (GH-7447) https://github.com/python/cpython/commit/45e4efba7fa2abe61d25e4f8b5bf482e19ff1280 -- _

[issue33782] VSTS Windows-PR: internal error

2018-06-06 Thread Steve Dower
Steve Dower added the comment: Right. This build failed to start, which is why there's only one section on the left hand side (normally you'll see all the build steps there, and clicking on them will show their logs). I think it'll be an internal race condition. I'll pass back whatever info

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7072 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was my mistake. fbound() should be return double. But since it is always used with floor(), it is better to move floor() inside it. -- nosy: +serhiy.storchaka pull_requests: +7073 ___ Python tracker

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: > But since it is always used with floor(), it is better to move floor() inside > it. Yeah, that's what I did ;-) I will backport the change to 3.7, 3.6 and 2.7. My final goal is just to fix a compiler warning in 2.7 :-D --

[issue33783] Use proper class markup for random.Random docs

2018-06-06 Thread Nick Coghlan
New submission from Nick Coghlan : Talking to Berker on http://psf.upfronthosting.co.za/roundup/meta/issue644 I noticed that docs for random.Random are currently embedded in the module preamble text for https://docs.python.org/3/library/random.html and hence really easy to miss. It would be

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread miss-islington
miss-islington added the comment: New changeset 5c022f13ab6db8929e092ad035b3dc61701e3198 by Miss Islington (bot) in branch '3.7': bpo-33781: audioop: enhance rounding double as int (GH-7447) https://github.com/python/cpython/commit/5c022f13ab6db8929e092ad035b3dc61701e3198 -- nosy: +

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7074 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Note: I chose to not add a NEWS entry, because even if my change might enhance the rounding, I don't think that it has any effect in practice :-) -- ___ Python tracker

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset b17d409bc0458e3981987c2358da661f228f5891 by Victor Stinner in branch '2.7': bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452) https://github.com/python/cpython/commit/b17d409bc0458e3981987c2358da661f228f5891 -- __

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: > New changeset b17d409bc0458e3981987c2358da661f228f5891 by Victor Stinner in > branch '2.7': > bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7452) I checked AppVeyor logs: this change fixed the audioop.c warning that I wanted to fix ;-)

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7076 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19418] audioop.c giving signed/unsigned warnings on Windows

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7075 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2bc1946fb02e140f5f5ac21a1afa2763615ad16b by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7451) https://github.com/python/cpython/commit/2bc1946fb02e140f5f5ac21a1afa276361

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 492d6424a7ca907c8ec1df21e51062e8f3d88e32 by Victor Stinner in branch 'master': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) https://github.com/python/cpython/commit/492d6424a7ca907c8ec1df21e51062e8f3d88e32 -- _

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7077 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7078 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33784] hash collision in instances of ipaddress.ip_network

2018-06-06 Thread Francois Schneider
Change by Francois Schneider : -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue33784] hash collision in instances of ipaddress.ip_network

2018-06-06 Thread Francois Schneider
New submission from Francois Schneider : >>> import ipaddress >>> hash(ipaddress.ip_network(u'20.0.2.3/32')) == >>> hash(ipaddress.ip_network(u'20.0.2.0/30')) True -- components: Library (Lib) messages: 318835 nosy: Francois Schneider priority: normal severity: normal status: open titl

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7079 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19418] audioop.c giving signed/unsigned warnings on Windows

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset e5b79c546370521764457ea2ec809303e580f5ea by Victor Stinner in branch '2.7': bpo-19418: audioop.c: Fix warnings on -0x8000 (GH-7453) https://github.com/python/cpython/commit/e5b79c546370521764457ea2ec809303e580f5ea -- _

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset e5b79c546370521764457ea2ec809303e580f5ea by Victor Stinner in branch '2.7': bpo-19418: audioop.c: Fix warnings on -0x8000 (GH-7453) https://github.com/python/cpython/commit/e5b79c546370521764457ea2ec809303e580f5ea -- _

[issue33785] Crash caused by pasting 𐌈𐌖 into python

2018-06-06 Thread Romaji Milton Amulo
New submission from Romaji Milton Amulo : On Windows 10, 64 bit, "Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32" crashes if 𐌈𐌖 is pasted into the interpreter window, closing the window immediately. Also 𐌆𐌀𐌋 crashes it too, suggesting the bug might be

[issue33785] Crash caused by pasting 𐌈𐌖 into python

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Are you using cmd.exe, PowerShell or IDLE? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28240] Enhance the timeit module: display average +- std dev instead of minimum

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3ef769fcd378a7f1cda19c0dfec2e79613d79e48 by Victor Stinner in branch 'master': bpo-28240: timeit: Update repeat() doc (GH-7419) https://github.com/python/cpython/commit/3ef769fcd378a7f1cda19c0dfec2e79613d79e48 -- _

[issue28240] Enhance the timeit module: display average +- std dev instead of minimum

2018-06-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7080 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread miss-islington
miss-islington added the comment: New changeset 016aff77cbf5f63ed051a98ac628522a1cfd40a4 by Miss Islington (bot) in branch '3.7': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) https://github.com/python/cpython/commit/016aff77cbf5f63ed051a98ac628522a1cfd40a4 -- nos

[issue33785] Crash caused by pasting 𐌈𐌖 into python

2018-06-06 Thread Romaji Milton Amulo
Romaji Milton Amulo added the comment: IDLE On Wed, Jun 6, 2018, 11:56 STINNER Victor wrote: > > STINNER Victor added the comment: > > Are you using cmd.exe, PowerShell or IDLE? > > -- > > ___ > Python tracker >

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread miss-islington
miss-islington added the comment: New changeset 97fe1b493df979956c66c57095bc7fce22104faf by Miss Islington (bot) in branch '3.6': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) https://github.com/python/cpython/commit/97fe1b493df979956c66c57095bc7fce22104faf -- __

[issue33785] Crash caused by pasting 𐌈𐌖 into python

2018-06-06 Thread Zachary Ware
Zachary Ware added the comment: I suspect this is the old issue of Tcl/Tk's lack of support for Unicode characters outside the BMP. If I'm correct, there's nothing we can do about it. -- assignee: -> terry.reedy components: +IDLE nosy: +serhiy.storchaka, terry.reedy, zach.ware

[issue33785] Crash caused by pasting 𐌈𐌖 into python

2018-06-06 Thread Romaji Milton Amulo
Romaji Milton Amulo added the comment: Would running it in Powershell avoid the issue? What is the BMP, by the way? -- ___ Python tracker ___ _

[issue33785] Crash caused by pasting 𐌈𐌖 into python

2018-06-06 Thread Matthew Barnett
Matthew Barnett added the comment: For clarity, the first is '\U00010308\U00010316' and the second is '\U00010306\U00010300\U0001030B'. The BMP is the Basic Multilingual Plane, which covers the codepoints in the range U+ to U+. Some software has a problem dealing with codepoints out

[issue33785] Crash caused by pasting 𐌈𐌖 into python

2018-06-06 Thread Zachary Ware
Zachary Ware added the comment: Depending on PowerShell's support for Unicode (I'm not familiar with it :)), yes; running python from PowerShell would probably be fine in this case. The BMP: https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane -- nosy: -mrabarnett

[issue33781] audioop.c: fbound() casts double to int for its return value

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Ok, fbound() is now better in all branches. I also fixed all compiler warnings in 2.7. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 67b7158d53f33ed644cc11ef394470a859ea8bad by Victor Stinner in branch '2.7': bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) (GH-7456) https://github.com/python/cpython/commit/67b7158d53f33ed644cc11ef394470a859ea8bad --

[issue28240] Enhance the timeit module: display average +- std dev instead of minimum

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset cebd4b009adca6611e92eb337747f59818e941a6 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-28240: timeit: Update repeat() doc (GH-7419) (GH-7457) https://github.com/python/cpython/commit/cebd4b009adca6611e92eb337747f59818e941a6 ---

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue28240] Enhance the timeit module: display average +- std dev instead of minimum

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: I updated the documentation in 3.7 and master branches. -- ___ Python tracker ___ ___ Python-bugs

[issue33785] Crash caused by pasting 𐌈𐌖 into python

2018-06-06 Thread Romaji Milton Amulo
Romaji Milton Amulo added the comment: It doesn't crash in Powershell, only shows up as the ? in a box character The issue must be with IDLE, most likely the BMP lack of support -- ___ Python tracker ___

[issue33785] Crash caused by pasting 𐌈𐌖 into IDLE on Windows

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- title: Crash caused by pasting 𐌈𐌖 into python -> Crash caused by pasting 𐌈𐌖 into IDLE on Windows ___ Python tracker ___ __

[issue33786] @asynccontextmanager doesn't work well with async generators

2018-06-06 Thread Valentin Lavrinenko
New submission from Valentin Lavrinenko : ``` @asynccontextmanager async def ctx(): yield async def gen(): async with ctx(): yield 'hello' yield 'world' async def main(): async with ctx(): async for value in gen(): print(value) rais

[issue33786] @asynccontextmanager doesn't work well with async generators

2018-06-06 Thread Valentin Lavrinenko
Valentin Lavrinenko added the comment: Sorry, `async with ctx()` in main() is not needed. -- ___ Python tracker ___ ___ Python-bugs

[issue24622] tokenize.py: missing EXACT_TOKEN_TYPES

2018-06-06 Thread Aaron Meurer
Aaron Meurer added the comment: I would suggest adding this to the what's new document https://docs.python.org/3.7/whatsnew/3.7.html. The change affects user-facing code (the exact_type attribute of TokenInfo is OP for ... and -> tokens prior to this patch). I would also point out that thi

[issue33786] @asynccontextmanager doesn't work well with async generators

2018-06-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue33783] Use proper class markup for random.Random docs

2018-06-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> rhettinger nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-li

[issue24622] tokenize.py: missing EXACT_TOKEN_TYPES

2018-06-06 Thread Stefan Krah
Stefan Krah added the comment: I would not mind backporting this. Let's think about it for a while. -- assignee: skrah -> resolution: fixed -> stage: resolved -> backport needed status: closed -> open versions: +Python 3.6 -Python 3.7 ___ Python t

[issue33780] [subprocess] Better Unicode support for shell=True on Windows

2018-06-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Windows nosy: +giampaolo.rodola, paul.moore, steve.dower, tim.golden, vstinner, zach.ware ___ Python tracker ___ _

[issue33777] dummy_threading: .is_alive method returns True after execution has completed

2018-06-06 Thread Brett Cannon
Change by Brett Cannon : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue33787] Argument clinic and Windows line endings

2018-06-06 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : If I use "Tools\clinic\clinic.py Modules\somemodule.c" on Windows argument clinic will modify the whole file and use Windows line endings ( "\r\n"). It would be good to use "\n" instead. -- assignee: larry components: Argument Clinic messages:

[issue33788] Argument clinic: use path_t in _winapi.c

2018-06-06 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : There currently are different functions in Modules/_winapi.c that deals with paths: CreateFile, CreateJunction, CreateNamedPipe and I'm currently working on a patch which will add 3 more. For those functions it would be convenient to be able to use path

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7081 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 02b4d67a38b0c17d87749eeefc51e91baef10857 by Victor Stinner in branch '2.7': bpo-31731: test_io hangs with --huntrleaks: exclude it (GH-7459) https://github.com/python/cpython/commit/02b4d67a38b0c17d87749eeefc51e91baef10857 --

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: test_io hangs often on Gentoo Refleaks 2.7 buildbot: Zachary Ware, who owns the builder, has to interrupt the test regularly. So I disabled test_io in regrtest when --huntrleaks is used, since at least one bug has been identified in test_io in test_interrupt

[issue32493] UUID Module - FreeBSD build failure

2018-06-06 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +7082 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue33785] Crash caused by pasting 𐌈𐌖 into IDLE on Windows

2018-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a duplicate of the remaining part of #13153. The error message displayed in a console used to start IDLE is the same, ending with "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte" In the previous is

[issue13153] IDLE 3.x on Windows crashes when pasting non-BMP unicode

2018-06-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg318863 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13153] IDLE 3.x on Windows crashes when pasting non-BMP unicode

2018-06-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -JBernardo, Ramchandra Apte, Rosuav, THRlWiTi, William.Schwartz, asvetlov, loewis, python-dev, roger.serwy ___ Python tracker ___

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ ./python -X dev -u -m test test_asyncio -v 2>&1 (...) test_create_connection_ssl_failed_certificate (test.test_asyncio.test_sslproto.SelectorStartTLSTests) ... Exception in thread test-server: Traceback (most recent call last): File "/home/v

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7083 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7084 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue32676] test_asyncio emits many warnings when run in debug mode

2018-06-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7085 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0eba7c39132614a5730cda6b340e18dfb2d30d14 by Victor Stinner in branch 'master': bpo-33789: test_asyncio: Fix ResourceWarning (GH-7460) https://github.com/python/cpython/commit/0eba7c39132614a5730cda6b340e18dfb2d30d14 -- ___

[issue33789] test_asyncio emits ResourceWarning warnings

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd by Victor Stinner in branch 'master': bpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461) https://github.com/python/cpython/commit/7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd --

[issue32676] test_asyncio emits many warnings when run in debug mode

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9f04f0df6fdb27190690bda949d213893d14e807 by Victor Stinner in branch 'master': bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462) https://github.com/python/cpython/commit/9f04f0df6fdb27190690bda949d213893d14e807 --

[issue33780] [subprocess] Better Unicode support for shell=True on Windows

2018-06-06 Thread Eryk Sun
Eryk Sun added the comment: > To get the correct output, cmd has a "/u" switch (this switch has > probably existed forever - at least since Windows NT 4.0, by my > internet search). The output can then be decoded using > encoding='utf-16-le', like any native Windows string. However, the /u

[issue33780] [subprocess] Better Unicode support for shell=True on Windows

2018-06-06 Thread Eryk Sun
Eryk Sun added the comment: > By default, the output of cmd is encoded with the "active" > codepage. In Python 3.6, you can decode this using > encoding='oem'. FYI, the actual encoding is not necessarily "oem". The console codepage may have been changed from the initial value by a SetConso

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: The bug can be reproduced on Linux using this patch: diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py index 78ab1eb822..735313152c 100644 --- a/Lib/test/test_asyncio/test_sslproto.py +++ b/Lib/test/test_asyncio/test

[issue33783] Use proper class markup for random.Random docs

2018-06-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks, I'll add a separate entry for the random.Random() class. -- components: +Documentation priority: normal -> low ___ Python tracker

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Call stack when the asyncio client connects to the server when the bug occurs: SSLProtocol.connection_made() -> SSLProtocol._start_handshake() -> SSLProtocol._process_write_backlog() -> SSLPipe.do_handshake() -> SSLPipe.feed_ssldata(b'', only_handshake=True) -

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: The issue occurs when the server calls start_tls() because the client calls start_tls(). In that case, ServerProto.data_received() is called with the server TLS handshake and so the client SSLProtocol never this this handshake from server... -- ___

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: Sorry, the patch to reproduce the issue on Linux is wrong: it introduces a bug in the test. Ignore this comment. -- It seems like I found the root cause: pause_reading() / resume_reading() on the transport is not safe. Sometimes, we loose data. See the "TOD

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-06-06 Thread STINNER Victor
STINNER Victor added the comment: _ProactorReadPipeTransport.set_transport(): if self.is_reading(): # reset reading callback / buffers / self._read_fut self.pause_reading() self.resume_reading() This method cancelled the pending overlapped WSARecv()

  1   2   >