[issue31844] HTMLParser: undocumented not implemented method

2020-07-15 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31844] HTMLParser: undocumented not implemented method

2020-07-15 Thread Berker Peksag
Berker Peksag added the comment: New changeset d4d127f1c6e586036104e4101f5af239fe7dc156 by Berker Peksag in branch 'master': bpo-31844: Move whatsnew note to 3.10.rst (GH-21504) https://github.com/python/cpython/commit/d4d127f1c6e586036104e4101f5af239fe7dc156 -- ___

[issue31844] HTMLParser: undocumented not implemented method

2020-07-15 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +20644 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/21504 ___ Python tracker ___

[issue31844] HTMLParser: undocumented not implemented method

2020-07-15 Thread Berker Peksag
Berker Peksag added the comment: New changeset e34bbfd61f405eef89e8aa50672b0b25022de320 by Berker Peksag in branch 'master': bpo-31844: Remove _markupbase.ParserBase.error() (GH-8562) https://github.com/python/cpython/commit/e34bbfd61f405eef89e8aa50672b0b25022de320 -- _

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-15 Thread Larry Hastings
Larry Hastings added the comment: Ping? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

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

2020-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: CPython is written on C, not C++, so we cannot use std::from_chars. Note also that to parse a number in JSON we need first to scan the PyUnicode object character-by-character using PyUnicode_READ() which is slower than just reading a byte from a memory, th

[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 Unsubscribe:

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

2020-07-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion. I'll give it some thought over the next few days. Here are a few initial thoughts: * The use of islice() really helps going through a small population quickly. * The current sample() uses _randbelow() instead of random() to guar

[issue41312] add !p to pprint.pformat() in str.format() an f-strings

2020-07-15 Thread Charles Machalow
Charles Machalow added the comment: Fair enough. Didn't really know that list existed. Sent this there. Awaiting moderator approval. Thanks. -- ___ Python tracker ___ ___

[issue41278] IDLE: Clarify some completion details in doc

2020-07-15 Thread Alex
Alex <2423067...@qq.com> added the comment: new feature found: 1.although the name __main__ do not exist even when editing, there will be some completions. 2.if you run a module like this: def new(): pass then create a new module, press __main__. + tab. it will become __main__.new 3.but, i

[issue41312] add !p to pprint.pformat() in str.format() an f-strings

2020-07-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This needs discussion on python-ideas/ideas category on discourse similar to f-string debug notation. -- nosy: +eric.smith, xtreak ___ Python tracker

[issue41312] add !p to pprint.pformat() in str.format() an f-strings

2020-07-15 Thread Charles Machalow
New submission from Charles Machalow : Right now in str.format(), we have !s, !r, and !a to allow us to call str(), repr(), and ascii() respectively on the given expression. I'm proposing that we add a !p conversion to have pprint.pformat() be called to convert the given expression to a 'pret

[issue40932] subprocess docs should warn of shlex use on Windows

2020-07-15 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch nosy: +ammar2 nosy_count: 7.0 -> 8.0 pull_requests: +20643 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21502 ___ Python tracker ___

[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: htt

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

2020-07-15 Thread Eryk Sun
Eryk Sun added the comment: > or 500 us with the undocumented NtSetSystemTime system call Umm... that should be NtSetTimerResolution. ;-) -- ___ Python tracker ___ __

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

2020-07-15 Thread Eryk Sun
Eryk Sun added the comment: > On the smaller scale, it looks quantized to multiples of ~15ms (?), > but then it gets more accurate as the times get larger. I don't > think it's a measurement error since the first measurement manages > microseconds. NT's default system timer resolution for th

[issue41271] Add support for io_uring to cpython

2020-07-15 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue41283] The parameter name for imghdr.what in the documentation is wrong

2020-07-15 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch nosy: +ammar2 nosy_count: 2.0 -> 3.0 pull_requests: +20642 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21501 ___ Python tracker ___

[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

[issue41271] Add support for io_uring to cpython

2020-07-15 Thread Ammar Askar
Ammar Askar added the comment: See also: https://github.com/python-trio/trio/issues/932 which contains a link to a library with cffi bindings to io_uring -- nosy: +ammar2 ___ Python tracker

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

2020-07-15 Thread Oscar Benjamin
New submission from Oscar Benjamin : The random.choice/random.sample functions will only accept a sequence to select from. Can there be a function in the random module for selecting from an arbitrary iterable? It is possible to make an efficient function that can make random selections from a

[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 th

[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 Unsubscribe:

[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: +ne

[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

[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 -- ___

[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 ___ __

[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 ___ _

[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 ___ __

[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 --

[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 _

[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 ___

[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&view=logs&j=d554cd63-f8f4-5b2d-871b-33e4ea76e915&t=5a14d0eb-dbd4-5b80-f5d0-7909f950a1cc&l=1859 test_empty_input (test.test_asyncio.test_subprocess.SubprocessProactorTests) ... ok tes

[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 >>> socket.socket().connect(('local

[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): de

[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 ___

[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 -- __

[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 libmp

[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: https://mail.pyth

[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 ___ ___

[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 c

[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 c

[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 ___ __

[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 c

[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 c

[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

[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 _

[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) https://github.com/python/cpython/commit/4a02da4f95cfff679e38a13ca0f44d660c566

[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) https://github.com/python/cpython/commit/f8055fb0f1054fce6a21047da39b92ae32416

[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 ... ... ä ... """ >

[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:

[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 -- __

[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 ___ __

[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 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) https://github.com/python/cpython/commit/af4eda46d1538b1da700a86588bdb94b0a4d1ff

[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. --

[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 Unsubs

[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

[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 ___ ___ Py

[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 ___ ___ Pyth

[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

[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 __

[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 Uns

[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 __

[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 Unsubscr

[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 ___ ___

[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 st

[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 ___ __

[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 ___ ___ Python-bugs-lis

[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 ___ ___

[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 spe

[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 months

[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 ___ ___

[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 ___ _

[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

[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

[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 cl

[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: https://mail.python.

[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

[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: IEEE

[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. --

[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 ___ ___ Python-b

[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

[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 -- __

[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 Unsubscribe

[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: "mach_absolute_

[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 ___ _

[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 --

[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 -

[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 ___ _

[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 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

[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 _

[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 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 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 ___ __

  1   2   >