[issue33944] Deprecate and remove pth files

2019-03-06 Thread Anthony Sottile
Anthony Sottile added the comment: > > There was a single .pth file that I deemed "malicious" since it completely breaks the `subprocess` module (`subprocess-run`) > > It only seems to set an attribute. What's wrong with that? Does the early import of subprocess cause problems? It assigns `sub

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread Ezio Melotti
Ezio Melotti added the comment: > Oh wow, that's really strange. I'm sure that I wrote "https://..."; URL but my > URL became "r263026496">https://..."; !? The links are now fixed (Roundup was getting confused by the rNN, since it looks like a SVN revision). -- nosy: +ezio.melot

[issue36220] LOAD_NAME and LOAD_GLOBAL handle dict subclasses for globals() differently

2019-03-06 Thread Kevin Shweh
New submission from Kevin Shweh : LOAD_NAME and LOAD_GLOBAL don't treat dict subclasses for globals() the same way. If globals() is a dict subclass, LOAD_GLOBAL will respect overridden __getitem__, but LOAD_NAME will use PyDict_GetItem. This causes global lookup to behave differently in class

[issue36213] subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long

2019-03-06 Thread Eryk Sun
Eryk Sun added the comment: Long-path support in Windows 10 does not extend to the lpCurrentDirectory parameter of CreateProcessW. If the path length exceeds the old limit of MAX_PATH - 2 characters (not counting the required trailing backslash and null), CreateProcessW fails with either ERR

[issue36220] LOAD_NAME and LOAD_GLOBAL handle dict subclasses for globals() differently

2019-03-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue36219] Add edit option in IDLE to convert smart quotes to ascii quotes

2019-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also dashes and hyphens to minuses and non-breaking spaces to normal spaces. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue36185] [EASY DOC] typo: Doc/c-api/objbuffer.rst: There is a typo in "corresponding"

2019-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ecc161d1209bf6d21f0fd6bef28476eda7cdaf79 by Serhiy Storchaka (Emmanuel Arias) in branch 'master': bpo-36185: Fix typo in Doc/c-api/objbuffer.rst. (GH-12204) https://github.com/python/cpython/commit/ecc161d1209bf6d21f0fd6bef28476eda7cdaf79 --

[issue36185] [EASY DOC] typo: Doc/c-api/objbuffer.rst: There is a typo in "corresponding"

2019-03-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +12200 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36185] [EASY DOC] typo: Doc/c-api/objbuffer.rst: There is a typo in "corresponding"

2019-03-06 Thread miss-islington
miss-islington added the comment: New changeset ca5ba3c8ac1dad511461d4251c6a1ca19de2 by Miss Islington (bot) in branch '3.7': bpo-36185: Fix typo in Doc/c-api/objbuffer.rst. (GH-12204) https://github.com/python/cpython/commit/ca5ba3c8ac1dad511461d4251c6a1ca19de2 -- nosy: +mi

[issue36193] Redirected stderr not reset properly when using logging

2019-03-06 Thread Vinay Sajip
Vinay Sajip added the comment: The StreamHandler allows you to specify *exactly* which stream you want to use to log to; sys.stderr is provided as a convenient default argument because that's what a lot of people want a lot of the time. This is typically done at logging configuration time, o

[issue36015] streamhandler cannot represent streams with an integer as name

2019-03-06 Thread Vinay Sajip
Vinay Sajip added the comment: Sorry, Riccardo, been very busy lately and not had time to look at it :-( Soon, I hope. -- ___ Python tracker ___ _

[issue33346] Syntax error with async generator inside dictionary comprehension

2019-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is what PR 6766 implements, Nathaniel. Except that your first example (an asynchronous generator in a synchronous comprehensions) is allowed in the current code and can occur inside a synchronous function. -- __

[issue33346] Syntax error with async generator inside dictionary comprehension

2019-03-06 Thread Nathaniel Smith
Nathaniel Smith added the comment: > Except that your first example (an asynchronous generator in a synchronous > comprehensions) is allowed in the current code and can occur inside a > synchronous function. Oh yeah, you're right of course. -- __

[issue33944] Deprecate and remove pth files

2019-03-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 6, 2019, at 19:04, Anthony Sottile wrote: > It assigns `subprocess.run`, which is an api in python3.5+. In those > versions, `subprocess.check_*` is implemented in terms of `subprocess.run`. > The `subprocess.run` provided by that package has a di

[issue36221] Setting PYTHONASYNCIODEBUG breaks warnings

2019-03-06 Thread Denis S. Otkidach
New submission from Denis S. Otkidach : Test script: -->8-- import asyncio @asyncio.coroutine def test(): with (yield from asyncio.Lock()): pass asyncio.run(test()) -->8-- Correct behavior without flag (warning is reported and points to correct line of code): --- $ python test.p

[issue36169] Add overlap() method to statistics.NormalDist()

2019-03-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 318d537daabf2bd5f781255c7e25bfce260cf227 by Raymond Hettinger in branch 'master': bpo-36169 : Add overlap() method to statistics.NormalDist (GH-12149) https://github.com/python/cpython/commit/318d537daabf2bd5f781255c7e25bfce260cf227 ---

[issue36169] Add overlap() method to statistics.NormalDist()

2019-03-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33944] Deprecate and remove pth files

2019-03-06 Thread Anthony Sottile
Anthony Sottile added the comment: > Doesn’t that kind of prove my point? :) It's not any worse than gevent ~breaking~ monkeypatching almost the entire standard library. And to be fair to the author, it was created well before (2013-06-21) python3.5's `run` api existed (2015-04-14) It's als

[issue36185] [EASY DOC] typo: Doc/c-api/objbuffer.rst: There is a typo in "corresponding"

2019-03-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

<    1   2