[issue41680] Turtles in Python 3.8.5 crashes OSX 10.14.6

2020-08-31 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. However, you are going to have give more specific information for us to be able to try to understand and reproduce the problem. Exactly what steps did you use to show the problem, in particular, in what context were those three lines of Pyt

[issue41683] Python3: Installation error on Ubunti-18

2020-08-31 Thread Ned Deily
Ned Deily added the comment: If setuptools 50 is in use, you are likely running into one of various problems introduced by setuptools new vendoring of distutils which breaks various Ubuntu local modifications. It looks like a temporary workaround is to to add this environment variable defin

[issue41678] File-level, optionally external sorting

2020-08-31 Thread Dennis Sweeney
Dennis Sweeney added the comment: Attached is a proof of concept. -- Added file: https://bugs.python.org/file49436/disksort.py ___ Python tracker ___ _

[issue41678] File-level, optionally external sorting

2020-08-31 Thread Dennis Sweeney
Dennis Sweeney added the comment: If we were to do this, I think a better API might be to accept an arbitrary iterable, then produce a sorted iterable: def sorted_on_disk(iterable, key=None, reverse=False) -> Iterable: ... It would sort chunks of the input and store them in files as sequ

[issue41683] Python3: Installation error on Ubunti-18

2020-08-31 Thread Prasanth R
New submission from Prasanth R : Got this error on Ubuntu-18 alone ``` _PYTHON_PROJECT_BASE=python3-3.8.3/Python-3.8.3 _PYTHON_HOST_PLATFORM=linux-x86_64 PYTHONPATH=python3-3.8.3/Python-3.8.3/build/lib.linux-x86_64-3.8/sysconfigdata:./Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__l

[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley
Change by Kyle Stanley : -- nosy: -paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-bugs-list maili

[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley
Change by Kyle Stanley : -- components: +Windows, asyncio nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ _

[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley
Kyle Stanley added the comment: In case the link to the logs are lost from closing and reopening the PR, it was a Windows CI test (GitHub actions) ran with the following configuration: D:\a\cpython\cpython>"D:\a\cpython\cpython\PCbuild\amd64\python.exe" -u -Wd -E -bb -m test -uall -u-cpu -r

[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley
Change by Kyle Stanley : -- components: +Tests nosy: +asvetlov, yselivanov type: -> behavior versions: +Python 3.10 ___ Python tracker ___

[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley
New submission from Kyle Stanley : In an unrelated PR to add a new argument to the base Executor class for concurrent.futures, there was a test_asyncio failure in test_sendfile for the ProactorEventLoop tests: == FAIL: test_s

[issue41682] test_asyncio: Proactor

2020-08-31 Thread Kyle Stanley
Change by Kyle Stanley : -- nosy: aeros priority: normal severity: normal status: open title: test_asyncio: Proactor ___ Python tracker ___

[issue41678] File-level, optionally external sorting

2020-08-31 Thread Platon workaccount
Platon workaccount added the comment: I mean Python's analog of sort [-k x.y] table.txt from GNU Coreutils. >> What do you refer when you say "sorting a file"? Sorting a file with multi-line plain text. Optionally, text consisting of several columns separated by a specific character. >> What

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-31 Thread Steve Dower
Steve Dower added the comment: Thanks, Ben! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue41669] Case mismatch between "include" and "Include"

2020-08-31 Thread Steve Dower
Steve Dower added the comment: Unfortunately, it's easier to change what we distribute, except that has _always_ been "include" (based on a 2.4 installer I had laying around). And of course we can't change the repo. Still, case sensitivity is becoming more acceptable on Windows and there are

[issue40083] No run option available in python idle in version 3.8.2

2020-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am assuming that Murat is correct that the only problem is confusion between 'Shell' (which is a subclass of the base editor window) and Editor Window (which is a different subclass). For further help, please to to a general forum, such as python-list. -

[issue41681] f-string error description seems wrong

2020-08-31 Thread Hanish
Hanish added the comment: I have raised a pull request for the fix https://github.com/python/cpython/pull/22036. Your review is appreciated :) -- ___ Python tracker ___ _

[issue40083] No run option available in python idle in version 3.8.2

2020-08-31 Thread Murat Turan
Murat Turan added the comment: There is a very simple solution for that. Open IDLE, if you dont see RUN tab, its opened in "Shell" mode. Go Options --> Configure IDLE, click to "General" tab and choose "Open Edit Window" option for start-up. That's it! -- nosy: +Murat_Turan

[issue41678] File-level, optionally external sorting

2020-08-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: What do you refer when you say "sorting a file"? What does "key" act upon? Strings representing the lines in the file? For allow_disk_use=False, what's the difference between opening the file, reading the lines, using sort() and writing the contents?

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-08-31 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue41681] f-string error description seems wrong

2020-08-31 Thread Hanish
Change by Hanish : -- keywords: +patch pull_requests: +21134 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22036 ___ Python tracker ___ _

[issue41400] Remove references to nonexisting __ne__ methods

2020-08-31 Thread Facundo Batista
Facundo Batista added the comment: >From a "consumer" POV, it's totally useful to see that `__ne__` is part of >what Set (and others) provides, even if it's implemented in the Set class >itself or wherever. So +1 to leave it like it's currently is. -- nosy: +facundobatista

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-31 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset ea5a6363c3f8cc90b7c0cc573922b10f296073b6 by Ben Darnell in branch 'master': bpo-39010: Fix errors logged on proactor loop restart (#22017) https://github.com/python/cpython/commit/ea5a6363c3f8cc90b7c0cc573922b10f296073b6 -- __

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +21133 pull_request: https://github.com/python/cpython/pull/22035 ___ Python tracker ___ __

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 11.0 -> 12.0 pull_requests: +21132 pull_request: https://github.com/python/cpython/pull/22034 ___ Python tracker ___

[issue41154] test_pkgutil:test_name_resolution fails on macOS HFS+ file systems

2020-08-31 Thread Brett Cannon
Brett Cannon added the comment: I think if we can craft a skip check that is targeted enough then that's our best solution, but barring that then skipping for all of macOS wouldn't be the end of the world (maybe a slightly less brute force is a macOS version check?). --

[issue26053] regression in pdb output between 2.7 and 3.5

2020-08-31 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue26053] regression in pdb output between 2.7 and 3.5

2020-08-31 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +21131 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22033 ___ Python tracker ___ ___

[issue26053] regression in pdb output between 2.7 and 3.5

2020-08-31 Thread Irit Katriel
Irit Katriel added the comment: The regression was introduced here: https://github.com/python/cpython/commit/e023091815e4946e42c1af102be1f258b2f47cb8 in main() it prints " ".join(sys.argv[1:]) instead of " ".join(args). In do_run (line 1029) sys.argv gets updated with the arg for that part

[issue35212] Expressions with format specifiers in f-strings give wrong code position in AST

2020-08-31 Thread Aaron Meurer
Aaron Meurer added the comment: The same thing occurs with specifiers like {a!r}. -- nosy: +asmeurer ___ Python tracker ___ ___ Pyt

[issue41681] f-string error description seems wrong

2020-08-31 Thread Eric V. Smith
Change by Eric V. Smith : -- versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue41681] f-string error description seems wrong

2020-08-31 Thread Hanish
Hanish added the comment: Sure. Thanks for the quick response :) Let me see if i can try to come up with something :) -- versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue41681] f-string error description seems wrong

2020-08-31 Thread Eric V. Smith
Eric V. Smith added the comment: It has to do with how the specification for the mini-language is parsed and how the defaults work. It could probably be fixed, but I'm personally not super motivated to track it down. But I'd look at a patch! I'm going to remove versions that we wouldn't back

[issue41681] f-string error description seems wrong

2020-08-31 Thread Hanish
New submission from Hanish : There seems to an error in the `f-string` error description when one do: >>> f'{1:,,}' Traceback (most recent call last): File "", line 1, in ValueError: Cannot specify both ',' and '_'. >>> The error seems to be that, i am not specifying both ',' and '_', but

[issue41513] High accuracy math.hypot()

2020-08-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +21130 pull_request: https://github.com/python/cpython/pull/22032 ___ Python tracker ___ ___

[issue41680] Turtles in Python 3.8.5 crashes OSX 10.14.6

2020-08-31 Thread Weyl
Change by Weyl : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue41680] Turtles in Python 3.8.5 crashes OSX 10.14.6

2020-08-31 Thread Weyl
New submission from Weyl : The following python sequence will crash OSX 10.14.6 and Python 3.8 import turtle theScreen=turtle.Screen() mertle=turtle.Turtle() -- components: macOS messages: 376159 nosy: dulcimoo, ned.deily, ronaldoussoren priority: normal severity: normal status: open t

[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2020-08-31 Thread Piotr Dobrogost
Change by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue41679] Deprecation warning due to invalid escape sequences in Doc/tools/extensions/peg_highlight.py

2020-08-31 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Following warnings are caused in Doc/tools/extensions/peg_highlight.py . These warnings show up during doc builds since the extension is used in the build. This is an easy issue to fix. ./python -Wall -m py_compile /root/cpython/Doc/tools/extensi

[issue41678] File-level, optionally external sorting

2020-08-31 Thread Platon workaccount
New submission from Platon workaccount : Feature request: a convenient sorter of whole files with the possibility of disk usage. Here's the syntax in my mind: shutil.sort(src, dst, headers=0, key=None, reverse=False, allow_disk_use=False) -- messages: 376157 nosy: platon.work priority

[issue41677] os.access() doesn't recognize lack of permissions on an SMB mountpoint

2020-08-31 Thread Michael Pelletier
New submission from Michael Pelletier : This emerged during a fault in a fileserver mounted on a Linux machine via a Samba client mount. The access to the mountpoint was being blocked by the fileserver, but os.access() wasn't able to recognize it as unreadable: >>> os.access('/opt/xray', os.R

[issue33997] multiprocessing Pool hangs in terminate()

2020-08-31 Thread Paul Madden
Change by Paul Madden : -- nosy: +paul.madden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Thomas Grainger
Change by Thomas Grainger : -- keywords: +patch pull_requests: +21129 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22029 ___ Python tracker ___

[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Ben
Ben added the comment: looking at the source https://raw.githubusercontent.com/python/cpython/3.8/Doc/library/asyncio-sync.rst it says :meth:`wait` just like the surrounding methods and surrounding types, which all work. Maybe :meth:`Event.wait` would fix? But why :meth:`wait` didn't w

[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Ben
Change by Ben : -- nosy: +bjs, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread STINNER Victor
STINNER Victor added the comment: Do you want to propose a documentation fix? -- nosy: +vstinner ___ Python tracker ___ ___ Python-

[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Thomas Grainger
New submission from Thomas Grainger : https://docs.python.org/dev/library/asyncio-sync.html#asyncio.Event links to https://docs.python.org/dev/library/asyncio-task.html#asyncio.wait instead of https://docs.python.org/dev/library/asyncio-sync.html#asyncio.Event.wait -- assignee: docs@p

[issue41675] Modernize siginterrupt calls

2020-08-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +21128 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22028 ___ Python tracker __

[issue41675] Modernize siginterrupt calls

2020-08-31 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : siginterrupt is deprecated: ./Modules/signalmodule.c:667:5: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations] 667 | if (siginterrupt(signalnum, flag)<0) { -- messages: 376152 nosy:

[issue41675] Modernize siginterrupt calls

2020-08-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: -Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue41674] Doc tests failing for many PRs on GitHub

2020-08-31 Thread Emmanuel Arias
New submission from Emmanuel Arias : Hi, This issue was reported by Mark Shannon on Python-dev mailing list Seems that there's an issue on doc build on Github pipeline https://github.com/python/cpython/pull/22026/checks?check_run_id=1050881634 https://github.com/python/cpython/pull/22025/che

[issue2506] Add mechanism to disable optimizations

2020-08-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21127 pull_request: https://github.com/python/cpython/pull/22027 ___ Python tracker ___

[issue41673] Result of multiprocessing.heap.BufferWrapper.create_memoryview can point to freed memory

2020-08-31 Thread Eric Wieser
Eric Wieser added the comment: Whoops, typo. `>>> b[0]` should read `m[0]`. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41673] Result of multiprocessing.heap.BufferWrapper.create_memoryview can point to freed memory

2020-08-31 Thread Eric Wieser
New submission from Eric Wieser : The full definition of `multiprocessing.heap.BufferWrapper` is: class BufferWrapper(object): _heap = Heap() def __init__(self, size): if size < 0: raise ValueError("Size {0:n} out of range".format(size))

[issue41668] Expose eventfd for high-performance event notifier in Linux

2020-08-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Indeed it is. CLosing in favour of bpo-41001 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue2506] Add mechanism to disable optimizations

2020-08-31 Thread Ned Batchelder
Ned Batchelder added the comment: If there is any doubt that this affects people, it was reported *again* against coverage.py today: https://github.com/nedbat/coveragepy/issues/1025 -- ___ Python tracker ___

[issue41670] ceval traces code differently with USE_COMPUTED_GOTOS

2020-08-31 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +21126 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22026 ___ Python tracker ___ ___

[issue41670] ceval traces code differently with USE_COMPUTED_GOTOS

2020-08-31 Thread Mark Shannon
Mark Shannon added the comment: A couple of things to fix here. Firstly, the PREDICTion of POP_BLOCK in FOR_ITER shouldn't be there. POP_BLOCK doesn't normally occur after a loop and hasn't since we removed "pseudo exceptions" from the interpreter a couple of years ago. Secondly, there is t

[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2020-08-31 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2.7 is no longer supported, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___ _

[issue39671] Mention in docs that asyncio.FIRST_COMPLETED does not guarantee the completion of no more than one task

2020-08-31 Thread Erik Bray
Change by Erik Bray : -- keywords: +patch nosy: +erik.bray nosy_count: 4.0 -> 5.0 pull_requests: +21125 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21918 ___ Python tracker __

[issue41668] Expose eventfd for high-performance event notifier in Linux

2020-08-31 Thread Zackery Spytz
Zackery Spytz added the comment: I think this is a duplicate of bpo-41001. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python

[issue41672] imaplib: wrong return type documented

2020-08-31 Thread Norbert Cyran
New submission from Norbert Cyran : Documentation on IMAP4 class specifies wrong return type of its commands: Each command returns a tuple: (type, [data, ...]) where type is usually 'OK' or 'NO', and data is either the text from the command response, or mandated results from the co

[issue14611] inspect.getargs fails on some anonymous tuples

2020-08-31 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue41627] Relocate user site packages on Windows 32-bit

2020-08-31 Thread Dong-hee Na
Dong-hee Na added the comment: > We should switch the pattern to Python{sys.winver}, which is XY or XY-32, the > same as elsewhere. +1 -- nosy: +corona10 ___ Python tracker

[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-08-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +21124 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22025 ___ Python tracker ___

[issue41154] test_pkgutil:test_name_resolution fails on macOS HFS+ file systems

2020-08-31 Thread Ned Deily
Ned Deily added the comment: > I wonder if it's a problem from Unicode representation That does seem to be the issue. In particular, there are differences in Unicode representation between file names on traditional HFS+ versus the newer APFS. APFS is the default for system file systems as of