[issue41305] Add StreamReader.readinto()

2020-07-15 Thread Yury Selivanov
Yury Selivanov added the comment: We don't want to extend StreamReader with new APIs as ultimately we plan to deprecate it. A new streams API is needed, perhaps inspired by Trio. Sadly, I'm -1 on this one. -- ___ Python tracker

[issue40150] (minor) mismatched argument in overlapped_RegisterWaitWithQueue call to RegisterWaitForSingleObject

2020-07-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue41307] "email.message.Message.as_bytes": fails to correctly handle "charset"

2020-07-15 Thread Dieter Maurer
Dieter Maurer added the comment: The following fixes the example: from copy import copy from io import BytesIO from email.message import Message from email.generator import BytesGenerator, _has_surrogates from email._policybase import Compat32 class FixedBytesGenerator(BytesGenerator):

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +20641 pull_request: https://github.com/python/cpython/pull/21499 ___ Python tracker ___

[issue41309] test_subprocess.test_pause_reading timing out randomly on Windows

2020-07-15 Thread Steve Dower
Change by Steve Dower : -- title: test_subprocess timing out randomly on Windows -> test_subprocess.test_pause_reading timing out randomly on Windows ___ Python tracker ___

[issue41309] test_subprocess timing out randomly on Windows

2020-07-15 Thread Steve Dower
New submission from Steve Dower : Spotted at https://dev.azure.com/Python/cpython/_build/results?buildId=66387=logs=d554cd63-f8f4-5b2d-871b-33e4ea76e915=5a14d0eb-dbd4-5b80-f5d0-7909f950a1cc=1859 test_empty_input (test.test_asyncio.test_subprocess.SubprocessProactorTests) ... ok

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread Ned Deily
Ned Deily added the comment: New changeset 4bfcffe16e9742c154f54ae96b5b36903500abaa by Steve Dower in branch '3.7': bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495) (#21499) https://github.com/python/cpython/commit/4bfcffe16e9742c154f54ae96b5b36903500abaa -- nosy:

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2020-07-15 Thread Steve Dower
Steve Dower added the comment: At a guess, it's probably the signal emulation (a.k.a. Ctrl+C support). We could save some time by checking the requested handle first without blocking, and only beginning the blocking call if it's not available. --

[issue40150] (minor) mismatched argument in overlapped_RegisterWaitWithQueue call to RegisterWaitForSingleObject

2020-07-15 Thread miss-islington
miss-islington added the comment: New changeset f8055fb0f1054fce6a21047da39b92ae32416b80 by Miss Islington (bot) in branch '3.8': bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call (GH-19686)

[issue40150] (minor) mismatched argument in overlapped_RegisterWaitWithQueue call to RegisterWaitForSingleObject

2020-07-15 Thread miss-islington
miss-islington added the comment: New changeset 4a02da4f95cfff679e38a13ca0f44d660c5669b5 by Miss Islington (bot) in branch '3.9': bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call (GH-19686)

[issue41305] Add StreamReader.readinto()

2020-07-15 Thread Tony
Tony added the comment: ok. Im interested in learning about the new api. Is it documented somewhere? -- ___ Python tracker ___

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread Steve Dower
Steve Dower added the comment: New changeset 936a66094591dc0e67d4a60c170148bb700ec016 by Steve Dower in branch 'master': bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495) https://github.com/python/cpython/commit/936a66094591dc0e67d4a60c170148bb700ec016 --

[issue41309] test_subprocess timing out randomly on Windows

2020-07-15 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +20638 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21495 ___ Python tracker ___

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +20639 pull_request: https://github.com/python/cpython/pull/21497 ___ Python tracker

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +20640 pull_request: https://github.com/python/cpython/pull/21498 ___ Python tracker ___

[issue33007] Objects referencing private-mangled names do not roundtrip properly under pickling.

2020-07-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 3.10 -Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2020-07-15 Thread Richard Sheridan
Richard Sheridan added the comment: I stumbled into this in another project and I want to +1 the uncommenting solution. The problem occurs on __del__ rather than specifically in the gc somewhere (it happens when refs drop to zero too), so I wouldn't worry too much about killing the garbage

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2020-07-15 Thread Richard Sheridan
Richard Sheridan added the comment: I stumbled into this in another project and I want to +1 the uncommenting solution. The problem occurs on __del__ rather than specifically in the gc somewhere (it happens when refs drop to zero too), so I wouldn't worry too much about killing the garbage

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread Steve Dower
Change by Steve Dower : -- stage: -> test needed type: -> security ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41291] Race conditions when opening and deleting a file on Mac OS X

2020-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: This appears to be a bug in the APFS filesystem implementation. On my machine: - main disk (SSD, APFS): race condition happens - r/w disk image with APFS: race condition happens - r/w disk image with HFS+: no race condition --

[issue41305] Add StreamReader.readinto()

2020-07-15 Thread Tony
Tony added the comment: Ah it's trio... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41310] micro-optimization: increase our float parsing speed by Nx

2020-07-15 Thread Gregory P. Smith
New submission from Gregory P. Smith : See https://lemire.me/blog/2020/03/10/fast-float-parsing-in-practice/ for inspiration and a reference (possibly a library to use, but if not the techniques still apply). Primarily usable when creating the float objects from the string data as is common

[issue41285] memoryview does not support subclassing

2020-07-15 Thread Stefan Krah
Stefan Krah added the comment: Yes, let's make #13797 a superseder. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41271] Add support for io_uring to cpython

2020-07-15 Thread Cooper Lees
Cooper Lees added the comment: Totally agree with a separate module first to POC. I should have stated that. Main goal was to open this issue to start discussions :) -- ___ Python tracker

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2020-07-15 Thread Richard Sheridan
Richard Sheridan added the comment: I stumbled into this in another project and I want to +1 the uncommenting solution. The problem occurs on __del__ rather than specifically in the gc somewhere (it happens when refs drop to zero too), so I wouldn't worry too much about killing the garbage

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2020-07-15 Thread Richard Sheridan
Richard Sheridan added the comment: I stumbled into this in another project and I want to +1 the uncommenting solution. The problem occurs on __del__ rather than specifically in the gc somewhere (it happens when refs drop to zero too), so I wouldn't worry too much about killing the garbage

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Stefan Krah
Stefan Krah added the comment: Closing, thanks for all the patches! -- stage: -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread miss-islington
miss-islington added the comment: New changeset 3b6a8d2455c6897085f4277737b0f9b9a3847c24 by Miss Islington (bot) in branch '3.8': bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495) https://github.com/python/cpython/commit/3b6a8d2455c6897085f4277737b0f9b9a3847c24 --

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread miss-islington
miss-islington added the comment: New changeset 28e93dd2b26c460424acbebd00d8b943abbbea17 by Miss Islington (bot) in branch '3.9': bpo-41304: Ensure python3x._pth is loaded on Windows (GH-21495) https://github.com/python/cpython/commit/28e93dd2b26c460424acbebd00d8b943abbbea17 --

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread Steve Dower
Steve Dower added the comment: Thanks, this is a regression. https://github.com/python/cpython/blob/master/PC/getpathp.c#L672 should be inverted, as a zero return value indicates success. -- keywords: +3.8regression versions: +Python 3.10, Python 3.7, Python 3.9

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Stefan Krah
Stefan Krah added the comment: I'm going to reclassify this as a build fix for 3.8. 3.8 promises: #if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x02040100 #error "libmpdec version >= 2.4.1 required" #endif So it seems reasonable to support at least two or three consecutive system

[issue41308] socket.connect() slow to time out on Windows

2020-07-15 Thread Steve Dower
New submission from Steve Dower : When connecting to localhost, socket.connect() takes two seconds on Windows (the default) to time out, but on Linux (including WSL) it times out immediately. Test code (assuming port has no listener): >>> import socket >>>

[issue41310] micro-optimization: increase our float parsing speed by Nx

2020-07-15 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith, mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40150] (minor) mismatched argument in overlapped_RegisterWaitWithQueue call to RegisterWaitForSingleObject

2020-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset af4eda46d1538b1da700a86588bdb94b0a4d1ff2 by Zackery Spytz in branch 'master': bpo-40150: Fix mismatched argument in RegisterWaitForSingleObject() call (GH-19686)

[issue40150] (minor) mismatched argument in overlapped_RegisterWaitWithQueue call to RegisterWaitForSingleObject

2020-07-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20635 pull_request: https://github.com/python/cpython/pull/21493 ___ Python tracker

[issue40150] (minor) mismatched argument in overlapped_RegisterWaitWithQueue call to RegisterWaitForSingleObject

2020-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +20636 pull_request: https://github.com/python/cpython/pull/21494 ___ Python tracker ___

[issue41306] test_tk failure on Arch Linux

2020-07-15 Thread Felix Yan
New submission from Felix Yan : test_from (tkinter.test.test_tkinter.test_widgets.ScaleTest) is currently failing on Arch Linux, and at least another place: https://python-build-standalone.readthedocs.io/en/latest/status.html The error looks like:

[issue41279] Convert StreamReaderProtocol to a BufferedProtocol

2020-07-15 Thread Tony
Change by Tony : -- pull_requests: +20633 pull_request: https://github.com/python/cpython/pull/21491 ___ Python tracker ___ ___

[issue41305] Add StreamReader.readinto()

2020-07-15 Thread Tony
Change by Tony : -- keywords: +patch pull_requests: +20634 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21491 ___ Python tracker ___

[issue41285] memoryview does not support subclassing

2020-07-15 Thread Stefan Krah
Change by Stefan Krah : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Allow objects implemented in pure Python to export PEP 3118 buffers ___ Python tracker

[issue41307] "email.message.Message.as_bytes": fails to correctly handle "charset"

2020-07-15 Thread Dieter Maurer
New submission from Dieter Maurer : In the transscript below, "ms" and "mb" should be equivalent: >>> from email import message_from_string, message_from_bytes >>> mt = """\ ... Mime-Version: 1.0 ... Content-Type: text/plain; charset=UTF-8 ... Content-Transfer-Encoding: 8bit ... ... ä ... """

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +20637 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/21495 ___ Python tracker

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Stefan Krah
Stefan Krah added the comment: New changeset 16eea45fbd3b7c3d1b222b7eb7a5d7ee427f70bd by Felix Yan in branch '3.8': [3.8] bpo-41302: Support system libmpdec 2.5 for Python 3.8 (GH-21488) https://github.com/python/cpython/commit/16eea45fbd3b7c3d1b222b7eb7a5d7ee427f70bd --

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-15 Thread wyz23x2
Change by wyz23x2 : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes

2020-07-15 Thread Yongjik Kim
Yongjik Kim added the comment: Hi, sorry if I'm interrupting, but while we're at this, could we also not escape regex for "message" part? (Or at least amend the documentation to clarify that the message part is literal string match?) Currently, the docs on -W just say "The meaning of each

[issue41291] Race conditions when opening and deleting a file on Mac OS X

2020-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: If it is reproducable in C this is likely a bug in macOS, and should be reported to them. I get the same behaviour as you with the test script, even if I add calls to fhandle.flush and os.fsync to force the content to stable storage. Interestingly enough

[issue41285] memoryview does not support subclassing

2020-07-15 Thread Michiel de Hoon
Michiel de Hoon added the comment: Thank you, I have posted an explanation in the "Ideas" category of discuss.python.org. -- ___ Python tracker ___

[issue41301] Assignment operation of list is not working as expected

2020-07-15 Thread Yashwanth Barad
Change by Yashwanth Barad : -- components: Windows files: List_assignment_in_functions.py nosy: paul.moore, steve.dower, tim.golden, yashwanthba...@gmail.com, zach.ware priority: normal severity: normal status: open title: Assignment operation of list is not working as expected type:

[issue20183] Derby #14: Convert 41 sites to Argument Clinic across 5 files

2020-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bbceef6851895135c80e588a55854c1afab46499 by Zackery Spytz in branch 'master': bpo-20183: Convert _locale to the Argument Clinic (GH-14201) https://github.com/python/cpython/commit/bbceef6851895135c80e588a55854c1afab46499 -- nosy:

[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes

2020-07-15 Thread Nikolaus Rath
Change by Nikolaus Rath : -- nosy: -nikratio ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41291] Race conditions when opening and deleting a file on Mac OS X

2020-07-15 Thread Giovanni Pizzi
Giovanni Pizzi added the comment: Thanks for your feedback! I also just reported the issue to Apple. For reference I got the Feedback ID FB8009608. I will let you know if they answer. In any case I agree that also your other error is unexpected. I am writing a library that should provide

[issue41301] Assignment operation of list is not working as expected

2020-07-15 Thread Steven D'Aprano
New submission from Steven D'Aprano : Sorry Yashwanthbarad, this isn't a bug, you expect the wrong result. Augmented assignment for lists is documented to be the same as calling the extend method, which means your AppenedFuncShortHandOperator function modifies the argument list in-place.

[issue41278] IDLE: Clarify some completion details in doc

2020-07-15 Thread E. Paine
E. Paine added the comment: Terry, can we change the user process to be owned by the filelist rather than the shell to avoid this difference in behaviour? (I can't think of any reason off the top of my head of why this couldn't happen) -- ___

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread miss-islington
miss-islington added the comment: New changeset 8ca63f95f769c31f65a996fe065ff6dcfb490bbe by Miss Islington (bot) in branch '3.9': bpo-41302: Fix build with system libmpdec (GH-21481) https://github.com/python/cpython/commit/8ca63f95f769c31f65a996fe065ff6dcfb490bbe --

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Stefan Krah
Change by Stefan Krah : -- resolution: -> fixed stage: patch review -> status: open -> pending ___ Python tracker ___ ___

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Stefan Krah
Stefan Krah added the comment: Thanks for the patch! The integrated libmpdec-2.4.2 in Python 3.8 still has a couple of UNUSED, so the simple approach of moving the define would not work. It would be easy to replace the few instances of UNUSED with void casts like in 2.5.0. Strictly speaking

[issue41285] memoryview does not support subclassing

2020-07-15 Thread Stefan Krah
Stefan Krah added the comment: If I understand this correctly, I think this may be a duplicate of #13797. Something like a __getbuffer__ protocol would be needed. I'm not saying we *should* go that route, just stating the requirements from my perspective. --

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2020-07-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the version info. Windows and/or threading experts: any ideas? -- components: +Library (Lib), Windows nosy: +paul.moore, pitrou, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue41295] CPython 3.8.4 regression on __setattr__ in multiinheritance with metaclasses

2020-07-15 Thread Jonas Schäfer
Change by Jonas Schäfer : -- nosy: +jssfr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2020-07-15 Thread SD
SD added the comment: I have tested this both on vs code terminal and cygwin for windows. 3.8.2 : python -m test.pythoninfo Python debug information Py_DEBUG: No (sys.gettotalrefcount() missing) _decimal.__libmpdec_version__: 2.4.2 builtins.float.double_format:

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Felix Yan
New submission from Felix Yan : In bpo-40874, mpdecimal.h in the vendored libmpdec has defines of UNUSED while the standalone released version of mpdecimal 2.5.0 doesn't. This breaks _decimal module build with system libmpdec due to UNUSED is undefined. Errors are like:

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Felix Yan
Felix Yan added the comment: Yes, I am currently defining it manually as a workaround for building 3.8.4 in Arch. Also opened GH-21481 for this :) -- ___ Python tracker ___

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread miss-islington
miss-islington added the comment: New changeset c55479556db015f48fc8bbca17f64d3e65598559 by Miss Islington (bot) in branch '3.8': [3.8] bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21483) https://github.com/python/cpython/commit/c55479556db015f48fc8bbca17f64d3e65598559

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread miss-islington
miss-islington added the comment: New changeset f3232294ee695492f43d424cc6969d018d49861d by Miss Islington (bot) in branch '3.9': [3.9] bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21482) https://github.com/python/cpython/commit/f3232294ee695492f43d424cc6969d018d49861d

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread Ned Deily
Ned Deily added the comment: New changeset 79c6b602efc9a906c8496f3d5f4d54c54b48fa06 by Miss Islington (bot) in branch '3.7': bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (GH-21484) https://github.com/python/cpython/commit/79c6b602efc9a906c8496f3d5f4d54c54b48fa06

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread Jimmy Girardet
Jimmy Girardet added the comment: replacing python38._pth by python._pth does fix it. -- ___ Python tracker ___ ___

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue41305] Add StreamReader.readinto()

2020-07-15 Thread Tony
New submission from Tony : Add a StreamReader.readinto(buf) function. Exactly like StreamReader.read() with *n* being equal to the length of buf. Instead of allocating a new buffer, copy the read buffer into buf. -- messages: 373702 nosy: tontinton priority: normal severity: normal

[issue41305] Add StreamReader.readinto()

2020-07-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +asyncio nosy: +asvetlov, yselivanov type: -> enhancement versions: +Python 3.10 ___ Python tracker ___

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2020-07-15 Thread Ned Deily
Ned Deily added the comment: Please provide the results of running the following with the two pythons you are using: python -m test.pythoninfo For what it's worth, running on macOS 10.15.5, I see a slight difference with more variability in the Python 3 results but nothing as pronounced as

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Stefan Krah
Stefan Krah added the comment: Thank you for the report, I'll add the define or remove UNUSED in 3.9 and 3.10. 3.8 is still supposed to use libmpdec-2.4.2, though it would be harmless to use libmpdec-2.5.0. Are you planning to use libmpdec-2.5.0 with 3.8? -- assignee: -> skrah

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +20630 pull_request: https://github.com/python/cpython/pull/21486 ___ Python tracker

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread Ned Deily
Ned Deily added the comment: Thanks, the PRs for 3.7 and 3.6 are now merged. -- versions: +Python 3.10, Python 3.5, Python 3.6, Python 3.8, Python 3.9 ___ Python tracker ___

[issue41303] perf_counter result does not count system sleep time in Mac OS

2020-07-15 Thread nooB
New submission from nooB : Documentation for time.perf_counter says "does include time elapsed during sleep". https://docs.python.org/3.8/library/time.html#time.perf_counter But it does not work as expected in Mac OS. I learnt that perf_counter uses the underlying c function:

[issue41303] perf_counter result does not count system sleep time in Mac OS

2020-07-15 Thread Ned Deily
Change by Ned Deily : -- nosy: +belopolsky, p-ganssle, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2020-07-15 Thread Dennis Sweeney
Dennis Sweeney added the comment: I reproduced something similar on Python 3.9.0b1, Windows 64-bit version: py -m pyperf timeit -s "import threading; E = threading.Event()" "E.wait()" NUMBERMean +- std dev --- 0.0 5.79 us

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +20627 pull_request: https://github.com/python/cpython/pull/21483 ___ Python tracker ___

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +20626 pull_request: https://github.com/python/cpython/pull/21482 ___ Python tracker

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +20628 pull_request: https://github.com/python/cpython/pull/21484 ___ Python tracker ___

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +20629 pull_request: https://github.com/python/cpython/pull/21485 ___ Python tracker ___

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 5a8d121a1f3ef5ad7c105ee378cc79a3eac0c7d4 by Rishi in branch 'master': bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) https://github.com/python/cpython/commit/5a8d121a1f3ef5ad7c105ee378cc79a3eac0c7d4 -- nosy:

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Stefan Krah
Stefan Krah added the comment: New changeset 015efdbef7454a522e88cd79ba2b4cd77a5fb2a2 by Felix Yan in branch 'master': bpo-41302: Fix build with system libmpdec (GH-21481) https://github.com/python/cpython/commit/015efdbef7454a522e88cd79ba2b4cd77a5fb2a2 --

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread Ned Deily
Ned Deily added the comment: New changeset 47a2955589bdb1a114d271496ff803ad73f954b8 by Miss Islington (bot) in branch '3.6': bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) (#21485) https://github.com/python/cpython/commit/47a2955589bdb1a114d271496ff803ad73f954b8 --

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Felix Yan
Change by Felix Yan : -- keywords: +patch pull_requests: +20624 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21481 ___ Python tracker

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread Petr Viktorin
Petr Viktorin added the comment: Larry and Ned, do you want this fix in the security-only releases you manage? PRs for 3.6 ad 3.7 are ready, should you wish to merge them. -- nosy: +larry, ned.deily -miss-islington ___ Python tracker

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread Larry Hastings
Larry Hastings added the comment: Yes, please. It's a simple low-risk fix. And 3.5.10rc1 is stuck waiting for a fix anyway. Thanks! -- ___ Python tracker ___

[issue41285] memoryview does not support subclassing

2020-07-15 Thread Michiel de Hoon
Michiel de Hoon added the comment: You are correct, this is indeed a duplicate of #13797. My apologies for not finding this issue before opening a new one. If there are no objections, I will close this issue as a duplicate. -- ___ Python tracker

[issue41304] python 38 embed ignore python38._pth file on windows

2020-07-15 Thread Jimmy Girardet
Change by Jimmy Girardet : -- title: python 38 embed ignore python38._pth file -> python 38 embed ignore python38._pth file on windows ___ Python tracker ___

[issue41302] _decimal failed to build with system libmpdec 2.5

2020-07-15 Thread Felix Yan
Change by Felix Yan : -- pull_requests: +20631 status: pending -> open pull_request: https://github.com/python/cpython/pull/21488 ___ Python tracker ___

[issue41271] Add support for io_uring to cpython

2020-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: How stable is the io_uring API? The stdlib evolves slowly, I'm not sure if the io_uring interface has matured enough to make it acceptable that updates to the stdlib bindings for that API are only done in new major releases of CPython (about every 18

[issue41291] Race conditions when opening and deleting a file on Mac OS X

2020-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've attached a variation on test-conc-read.py that uses os.open and low-level APIs instead of the Python IO stack (open/io.open). This fails in the same way. os.open/os.read/os.write/os.close are very thin wrappers around the corresponding C APIs. That

[issue41304] python 38 embed ignore python38._pth file

2020-07-15 Thread Jimmy Girardet
New submission from Jimmy Girardet : Hi, With python embed unziped in `38` directory(python 3.8.4): ``` # python38._pth python38.zip . ..\\app # Uncomment to run site.main() automatically #import site ``` ``` PS C:\Users\jimmy\rien\embed> .\38\python.exe -c "import sys;print(sys.path);import

[issue41291] Race conditions when opening and deleting a file on Mac OS X

2020-07-15 Thread Ned Deily
Ned Deily added the comment: I was able to easily reproduce it as well. I suppose we all tested on very fast SSD-based APFS file systems. I wonder if the problem might be file system related. I wasn’t able to reproduce it using a HDD-based HFS+ file system but it might just be due to the

[issue39017] Infinite loop in the tarfile module

2020-07-15 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +20632 pull_request: https://github.com/python/cpython/pull/21489 ___ Python tracker ___

[issue23860] Windows: Failure to check return value from lseek() in Modules/mmapmodule.c

2020-07-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41271] Add support for io_uring to cpython

2020-07-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: I agree that adding stdlib support is premature. io_uring has a large and growing API surface. It will take some experimentation to see what the best way to expose its power to Python is. -- nosy: +benjamin.peterson

[issue41286] Built-in platform module does not offer to check for processor instructions

2020-07-15 Thread Ammar Askar
Ammar Askar added the comment: Your best bet then is probably using a library built for this purpose like https://github.com/workhorsy/py-cpuinfo Like Christian said, exposing this information in the standard library would be a fairly large maintenance burden for a feature that can't really

[issue41311] Add a function to get a random sample from an iterable (reservoir sampling)

2020-07-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41310] micro-optimization: increase our float parsing speed by Nx

2020-07-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41305] Add StreamReader.readinto()

2020-07-15 Thread Yury Selivanov
Yury Selivanov added the comment: > Im interested in learning about the new api. There are two problems with the current API: 1. Reader and writer are separate objects, while they should be one. 2. Writer.write is not a coroutine, although it should be one. There are other minor nits, but

  1   2   >