[issue47211] Remove re.template() and re.TEMPLATE

2022-04-06 Thread Ma Lin
Change by Ma Lin : -- nosy: +malin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36207] robotsparser deny all with some rules

2022-04-06 Thread adiboo adib
adiboo adib added the comment: Hi now it work on all my website https://www.matelesecretairemedicale.com/ -- ___ Python tracker ___

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Dutcho
Dutcho added the comment: That was the case in older versions (up to a6) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Steve Dower
Steve Dower added the comment: Good catch, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Dutcho
Dutcho added the comment: BTW I just found 'py -0p' also no longer shows the 'venv' path ``` (venv) C:\>py -0p -V:3.11 *C:\Program Files\Python311\python.exe -V:3.10 C:\Program Files\Python310\python.exe -V:3.9 C:\Program Files\Python39\python.exe -V:3.8

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-04-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2b4f2f5fa4d1123c19bf0643cfa5a4fe8df4175c by Victor Stinner in branch 'main': Revert "bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052)" (GH-32343)

[issue40421] [C API] Add public getter functions for the internal PyFrameObject structure

2022-04-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30410 pull_request: https://github.com/python/cpython/pull/32361 ___ Python tracker ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-04-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30404 pull_request: https://github.com/python/cpython/pull/32352 ___ Python tracker ___

[issue47120] Make all jump opcodes relative

2022-04-06 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +30405 pull_request: https://github.com/python/cpython/pull/32353 ___ Python tracker ___

[issue47237] Inheritance from Protocol with property in dataclass makes them non-instantiatable

2022-04-06 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, JelleZijlstra, eric.smith, gvanrossum, kj ___ Python tracker ___ ___

[issue45210] tp_dealloc docs should mention error indicator may be set

2022-04-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30407 pull_request: https://github.com/python/cpython/pull/32357 ___ Python tracker ___

[issue47237] Inheritance from Protocol with property in class makes them non-instantiatable

2022-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: Here's the error without dataclasses: -- from typing import Protocol class SomeProtocol(Protocol): @property def some_value(self) -> str: ... class SomeClass(SomeProtocol): def __init__(self, some_value): self.some_value = some_value

[issue47120] Make all jump opcodes relative

2022-04-06 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +30408 pull_request: https://github.com/python/cpython/pull/32359 ___ Python tracker ___

[issue47239] Python Launcher for Windowscd \

2022-04-06 Thread Dutcho
Change by Dutcho : -- components: Windows nosy: Dutcho, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Python Launcher for Windowscd \ versions: Python 3.11 ___ Python tracker

[issue47240] Python 3.x built for ppc+ppc64 errs on: No module named 'msvcrt', '_posixsubprocess'

2022-04-06 Thread Sergey Fedorov
New submission from Sergey Fedorov : While adding definitions for additional universal binary option (ppc+ppc64) is rather straightforward (following already existing examples in the source code), and Python 3.x after patching do build as universal for named two arch, trying to install any

[issue36329] use the right python "make -C Doc/ serve"

2022-04-06 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- nosy: +hugovk nosy_count: 4.0 -> 5.0 pull_requests: +30406 pull_request: https://github.com/python/cpython/pull/32354 ___ Python tracker ___

[issue44501] Packing constant call arguments

2022-04-06 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Dutcho
New submission from Dutcho : If doing `py -list` in 3.11.0a7, a star "*" shows on 3.11, even though the default (set by environment variable PY_PYTHON) is 3.10, which `py -V` confirms ``` C:\>py --list -V:3.11 *Python 3.11 (64-bit) -V:3.10 Python 3.10 (64-bit) -V:3.9

[issue47188] ncurses: *** buffer overflow detected ***: terminated with -D_FORTIFY_SOURCE=3

2022-04-06 Thread Martin Liška
Martin Liška added the comment: So the issue is ncurses, closing here. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue47238] Python threading.Event().wait() depends on the system time

2022-04-06 Thread Aleksandr
New submission from Aleksandr : This happens on Ubuntu on Python versions 3.8.5 and 3.10.4 I have two threads that can change the system time to a day ago. If the change in the system time for a day occurs at the time of wait, then I hang for one day plus the waiting time. I thought

[issue47237] Inheritance from base class with property in class makes them non-instantiatable

2022-04-06 Thread Eric V. Smith
Change by Eric V. Smith : -- title: Inheritance from Protocol with property in class makes them non-instantiatable -> Inheritance from base class with property in class makes them non-instantiatable ___ Python tracker

[issue47189] What's new in Python 3.11: Faster CPython

2022-04-06 Thread Ken Jin
New submission from Ken Jin : New changeset 9ffe47df5468a72603f730eae48c2fd4ec615ffa by Ken Jin in branch 'main': bpo-47189: What's New in 3.11: Faster CPython (GH-32235) https://github.com/python/cpython/commit/9ffe47df5468a72603f730eae48c2fd4ec615ffa --

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Steve Dower
Steve Dower added the comment: It's fine here. It affects the same part of the code. -- ___ Python tracker ___ ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-04-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset 765f6dee0fcf55c6ea258c2be4cc9dfb1b014f60 by Christian Heimes in branch 'main': bpo-40280: WASM defaults to no dynamic linking (GH-32360) https://github.com/python/cpython/commit/765f6dee0fcf55c6ea258c2be4cc9dfb1b014f60 --

[issue36329] use the right python "make -C Doc/ serve"

2022-04-06 Thread Hugo van Kemenade
Hugo van Kemenade added the comment: I've made PRs for this: CPython Docs: https://github.com/python/cpython/pull/32354 Devguide: https://github.com/python/devguide/pull/826 Also set this bpo for Python 3.11. -- versions: +Python 3.11 -Python 3.8

[issue45210] tp_dealloc docs should mention error indicator may be set

2022-04-06 Thread STINNER Victor
STINNER Victor added the comment: I wrote GH-32357 to check in debug mode that tp_dealloc functions leave the current exception unchanged. You can use attached unicode_dealloc_bug.patch to inject a bug to test my PR. Example ("make" is enough to trigger the bug): --- Fatal Python error:

[issue47103] Copy pgort140.dll when building for PGO

2022-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 074da788028c1f1e867dc81698efdcdc263f2288 by Steve Dower in branch 'main': bpo-47103: Copy pgort140.dll into output directory when building PGInstrument on Windows (GH-32083)

[issue42238] Deprecate suspicious.py?

2022-04-06 Thread Julien Palard
Julien Palard added the comment: One true positive today: https://github.com/python/cpython/pull/32355 -- ___ Python tracker ___

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-04-06 Thread STINNER Victor
STINNER Victor added the comment: The change was rejected by the Steering Council: https://mail.python.org/archives/list/python-...@python.org/message/GFOMU7LP63JUVFMWNJNZJLUMZDRPTUYJ/ -- resolution: -> rejected stage: patch review -> resolved status: open -> closed

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-04-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30409 pull_request: https://github.com/python/cpython/pull/32360 ___ Python tracker ___

[issue36795] "make venv" failed in Docs

2022-04-06 Thread Hugo van Kemenade
Hugo van Kemenade added the comment: I cannot reproduce this (macOS, Python 3.10, pip 22.0.4). As xtreak said, it's probably caused by using a very old version of pip (9.0.1 from Nov 6, 2016), so let's close it. Please let us know if it happens again, and whether updating pip helps.

[issue47237] Inheritance from Protocol with property in dataclass makes them non-instantiatable

2022-04-06 Thread Daniel Draper
New submission from Daniel Draper : Hi, According to https://peps.python.org/pep-0544/#explicitly-declaring-implementation it should be possible to explicitly inherit from Protocols. This however breaks the dataclass constructor when using the @property decorator in the protocol, see this

[issue47229] IDLE / Thonny UI crashes on Chromebook Linux/Bullseye

2022-04-06 Thread Doug Bates
Doug Bates added the comment: Thank you Terry for your interest/helpfulness. I'm a bit out of my depth but to explain, I first noticed the problem attempting to run Thonny as an development tool for Raspberry Pi RP2040 Picos. Previously it all worked great running on Buster. When I hit

[issue36207] robotsparser deny all with some rules

2022-04-06 Thread STINNER Victor
STINNER Victor added the comment: I removed two comments: none of the mentioned URL contains a "Disallow: ?" rule and the comments didn't add any value to this issue. It looks like regular spam (SEO). -- ___ Python tracker

[issue36207] robotsparser deny all with some rules

2022-04-06 Thread STINNER Victor
Change by STINNER Victor : -- Removed message: https://bugs.python.org/msg416847 ___ Python tracker ___ ___ Python-bugs-list

[issue36207] robotsparser deny all with some rules

2022-04-06 Thread STINNER Victor
Change by STINNER Victor : -- Removed message: https://bugs.python.org/msg416767 ___ Python tracker ___ ___ Python-bugs-list

[issue47189] What's new in Python 3.11: Faster CPython

2022-04-06 Thread Ken Jin
Change by Ken Jin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47169] Stable ABI: Some optional (#ifdef'd) functions aren't handled correctly

2022-04-06 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +30414 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32365 ___ Python tracker ___

[issue47241] [C API] Move the PyCodeObject structure to the internal C API (make the structure opaque)

2022-04-06 Thread STINNER Victor
New submission from STINNER Victor : The PyCodeObject structure is documented at: https://docs.python.org/dev/c-api/code.html The structured evolved a lot in Python 3.11 to optimize Python/ceval.c performance: * read-only co_code (object) was replaced with modifiable co_code_adaptive

[issue47168] Improvements for stable ABI definition files

2022-04-06 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +30412 pull_request: https://github.com/python/cpython/pull/32365 ___ Python tracker ___

[issue39812] Avoid daemon threads in concurrent.futures

2022-04-06 Thread Josh Rosenberg
Josh Rosenberg added the comment: I think this is causing a regression for code that explicitly desires the ThreadPoolExecutor to go away abruptly when all other non-daemon threads complete (by choosing not to use a with statement, and if shutdown is called, calling it with wait=False, or

[issue39947] [C API] Make the PyThreadState structure opaque (move it to the internal C API)

2022-04-06 Thread STINNER Victor
STINNER Victor added the comment: I would be nice to make the PyThreadState opaque in Python 3.12. IMO it's too late for Python 3.11. Hopefully, Cython should be prepared for such change. At the beginning, maybe Cython can just use the internal C API, as it does to access the internal

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +30411 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32364 ___ Python tracker ___

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Steve Dower
Steve Dower added the comment: PR posted, and here's some sample output with the change: C:\> py.exe --list * Active venv -V:3.11 Python 3.11 (Store) -V:3.10 Python 3.10 (Store) -V:3.10-32 Python 3.10 (32-bit) -V:3.9 Python 3.9 (64-bit)

[issue47240] Python 3.x built for ppc+ppc64 errs on: No module named 'msvcrt', '_posixsubprocess'

2022-04-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem you should look into is why the _posixsubprocess doesn't build, the message about msvcrt is a red herring due to the way subprocess.py is structured. Also compare the pyconfig.h files created for the two single architecture builds, maybe there

[issue47235] Clarify that `assret_called_once_with` sample code is intended typo

2022-04-06 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8 ___ Python tracker ___

[issue47235] Clarify that `assret_called_once_with` sample code is intended typo

2022-04-06 Thread miss-islington
miss-islington added the comment: New changeset 770780e63e2a99f842670ef901a257ba64293d6b by Miss Islington (bot) in branch '3.9': bpo-47235: Note where a typo is intentional in code. (GH-32348) https://github.com/python/cpython/commit/770780e63e2a99f842670ef901a257ba64293d6b --

[issue47237] Inheritance from base class with property in class makes them non-instantiatable

2022-04-06 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I think the behavior with regular classes is expected (that's just how inheritance works), but a case could be made that dataclasses should handle this case specially. -- ___ Python tracker

[issue40421] [C API] Add public getter functions for the internal PyFrameObject structure

2022-04-06 Thread STINNER Victor
STINNER Victor added the comment: The PyFrameObject structure was made opaque by bpo-46836. -- ___ Python tracker ___ ___

[issue39187] urllib.robotparser does not respect the longest match for the rule

2022-04-06 Thread matele secretaire
matele secretaire added the comment: I can't find a documentation about it, but all of the robots.txt checkers I find behave like this. You can test on this site: https://www.st-info.fr/robots.txt, I believe that this is how it's implemented now in most parsers ? -- nosy:

[issue47235] Clarify that `assret_called_once_with` sample code is intended typo

2022-04-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ac1fb07b6ecb6b93446484f52894914e5199de63 by Gregory P. Smith in branch 'main': bpo-47235: Note where a typo is intentional in code. (GH-32348) https://github.com/python/cpython/commit/ac1fb07b6ecb6b93446484f52894914e5199de63 --

[issue47235] Clarify that `assret_called_once_with` sample code is intended typo

2022-04-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +30416 pull_request: https://github.com/python/cpython/pull/32368 ___ Python tracker ___

[issue47235] Clarify that `assret_called_once_with` sample code is intended typo

2022-04-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +30415 pull_request: https://github.com/python/cpython/pull/32367 ___ Python tracker

[issue40421] [C API] Add public getter functions for the internal PyFrameObject structure

2022-04-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 14a9b4895b61bcd46ed968c43c5eec27670a0aac by Victor Stinner in branch 'main': bpo-40421: test_capi uses assertEqual(), not assertEquals() (GH-32361) https://github.com/python/cpython/commit/14a9b4895b61bcd46ed968c43c5eec27670a0aac --

[issue47234] PEP-484 "numeric tower" approach makes it hard/impossible to specify contracts in documentation

2022-04-06 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47115] Documentation inconsistency with the stable ABI

2022-04-06 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset d79f118d044e9b4244b5dfda35448d39202d7f56 by Petr Viktorin in branch 'main': bpo-47115: Document which parts of structs are in limited API/stable ABI (GH-32196) https://github.com/python/cpython/commit/d79f118d044e9b4244b5dfda35448d39202d7f56

[issue24778] mailcap.findmatch: document shell command Injection danger in filename parameter

2022-04-06 Thread STINNER Victor
STINNER Victor added the comment: In 2022, Python 3.11 still has the issue: vstinner@apu$ python3.11 -m mailcap Mailcap files: /home/vstinner/.mailcap /etc/mailcap (...) Mailcap entries: (...) text/html copiousoutput lineno 5 view

[issue47235] Clarify that `assret_called_once_with` sample code is intended typo

2022-04-06 Thread miss-islington
miss-islington added the comment: New changeset 3856b4995ec0e632d47b733cdecb5183ac830568 by Miss Islington (bot) in branch '3.10': bpo-47235: Note where a typo is intentional in code. (GH-32348) https://github.com/python/cpython/commit/3856b4995ec0e632d47b733cdecb5183ac830568 --

[issue40421] [C API] Add public getter functions for the internal PyFrameObject structure

2022-04-06 Thread STINNER Victor
STINNER Victor added the comment: IMO the initial goal is now reached. I close the issue. Thanks to everyone who helped implementing these changes! The PyFrameObject structure is now opaque in Python 3.11. New getter functions of the Python 3.11 C API: * PyFrame_GetBuiltins() *

[issue47103] Copy pgort140.dll when building for PGO

2022-04-06 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +30413 pull_request: https://github.com/python/cpython/pull/32366 ___ Python tracker ___

[issue39812] Avoid daemon threads in concurrent.futures

2022-04-06 Thread Josh Rosenberg
Change by Josh Rosenberg : -- Removed message: https://bugs.python.org/msg416876 ___ Python tracker ___ ___ Python-bugs-list

[issue47237] Inheritance from base class with property in class makes them non-instantiatable

2022-04-06 Thread Guido van Rossum
Guido van Rossum added the comment: So is the conclusion that this should be closed as "not a bug"? -- ___ Python tracker ___ ___

[issue47211] Remove re.template() and re.TEMPLATE

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b09184bf05b07b77c5ecfedd4daa846be3cbf0a9 by Serhiy Storchaka in branch 'main': bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300) https://github.com/python/cpython/commit/b09184bf05b07b77c5ecfedd4daa846be3cbf0a9

[issue47211] Remove re.template() and re.TEMPLATE

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

[issue47243] Duplicate entry in 'Objects/unicodetype_db.h'

2022-04-06 Thread LiarPrincess
Change by LiarPrincess : -- keywords: +patch pull_requests: +30419 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32376 ___ Python tracker ___

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-04-06 Thread Ken Jin
Ken Jin added the comment: Andrew, it seems that the post-commit CI has started failing after this commit. Specifically it says "test_asyncio failed (env changed)" >From this page, https://github.com/python/cpython/commits/3.10?after=3856b4995ec0e632d47b733cdecb5183ac830568+34=3.10 the

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-04-06 Thread Ken Jin
Ken Jin added the comment: I forgot to specify, that this is *only* on 3.10, not main. -- ___ Python tracker ___ ___

[issue46769] Improve documentation for `typing.TypeVar`

2022-04-06 Thread Ken Jin
Ken Jin added the comment: New changeset d6a7ee69fb3263450ba47bed9104f4a68a08a9bd by Ken Jin in branch '3.9': [3.9] bpo-46769: Fix backticks in typing.rst to appease rstlint (GH-32375) https://github.com/python/cpython/commit/d6a7ee69fb3263450ba47bed9104f4a68a08a9bd --

[issue47237] Inheritance from base class with property in class makes them non-instantiatable

2022-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: What would dataclasses do that's different from a regular class? -- ___ Python tracker ___ ___

[issue47227] Suppress expression chaining for RE parsing errors

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 50872dbadcba1f52867b6f76050cd7b5d0aa1e18 by Serhiy Storchaka in branch 'main': bpo-47227: Suppress expression chaining for more RE parsing errors (GH-32333) https://github.com/python/cpython/commit/50872dbadcba1f52867b6f76050cd7b5d0aa1e18

[issue46721] Optimize set.issuperset() for non-set argument

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a69a4a917c436579c2c4112081ea86a70f1f05d3 by Serhiy Storchaka in branch 'main': bpo-46721: Optimize set.issuperset() for non-set arguments (GH-31280) https://github.com/python/cpython/commit/a69a4a917c436579c2c4112081ea86a70f1f05d3

[issue43464] set intersections should short-circuit

2022-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.11 -Python 3.10 ___ Python tracker ___

[issue47227] Suppress expression chaining for RE parsing errors

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

[issue47243] Duplicate entry in 'Objects/unicodetype_db.h'

2022-04-06 Thread LiarPrincess
New submission from LiarPrincess : This one is so tiny that I'm not really sure we want to merge it… === Problem === `Objects/unicodetype_db.h` starts in a following way: ```c /* a list of unique character type descriptors */ const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[] = { {0, 0,

[issue46769] Improve documentation for `typing.TypeVar`

2022-04-06 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +30418 pull_request: https://github.com/python/cpython/pull/32375 ___ Python tracker ___ ___

[issue46769] Improve documentation for `typing.TypeVar`

2022-04-06 Thread Ken Jin
Ken Jin added the comment: New changeset 80af26d25af5568229d31ecb2a8f1bf9702b7791 by Ken Jin in branch '3.10': [3.10] bpo-46769: Fix backticks in typing.rst to appease rstlint (GH-32374) https://github.com/python/cpython/commit/80af26d25af5568229d31ecb2a8f1bf9702b7791 --

[issue43464] set intersections should short-circuit

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 31cd25f4e17cd68487dc76c1b2ec162a646818c2 by Serhiy Storchaka in branch 'main': bpo-43464: Optimize set.intersection() for non-set arguments (GH-31316) https://github.com/python/cpython/commit/31cd25f4e17cd68487dc76c1b2ec162a646818c2

[issue26579] Support pickling slots in subclasses of common classes

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 884eba3c76916889fd6bff3b37b8552bfb4f9566 by Serhiy Storchaka in branch 'main': bpo-26579: Add object.__getstate__(). (GH-2821) https://github.com/python/cpython/commit/884eba3c76916889fd6bff3b37b8552bfb4f9566 --

[issue46769] Improve documentation for `typing.TypeVar`

2022-04-06 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +30417 pull_request: https://github.com/python/cpython/pull/32374 ___ Python tracker ___ ___

[issue47234] PEP-484 "numeric tower" approach makes it hard/impossible to specify contracts in documentation

2022-04-06 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46721] Optimize set.issuperset() for non-set argument

2022-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: -Use-after-free by mutating set during set operations resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue47244] email.utils.formataddr does not respect double spaces

2022-04-06 Thread Alec Rosenbaum
New submission from Alec Rosenbaum : It seems that `email.utils.formataddr` and `email.utils.parseaddr` are not directly inverse from each other, because `formataddr` does not respect double spaces within the "realname" section. For example: ``` from email.utils import formataddr, parseaddr

[issue47061] Deprecate modules listed in PEP 594

2022-04-06 Thread Brett Cannon
Brett Cannon added the comment: New changeset 32b33879c2e19cde735c1971b06869976200e1d8 by Brett Cannon in branch 'main': bpo-47061: use `warnings._deprecated()` with asynchat, asyncore, and smtpd (GH-32350) https://github.com/python/cpython/commit/32b33879c2e19cde735c1971b06869976200e1d8

[issue47242] Annoying white bar in IDLE (line 457 in sidebar.py)

2022-04-06 Thread antudic
New submission from antudic : I noticed there was a white bar to the left in my IDLE when I upgraded to 3.10, it stuck out like a soar thumb since I have a custom dark theme. This was not an issue with earlier versions. After scouring through the code I found the perpetrator to be a "padx=2"

[issue26579] Support pickling slots in subclasses of common classes

2022-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.7 ___ Python tracker ___

[issue47243] Duplicate entry in 'Objects/unicodetype_db.h'

2022-04-06 Thread LiarPrincess
LiarPrincess added the comment: CLA is signed, but there is this 'it might take a few days before your tracker profile is updated'. Added version 3.11 (present also in previous versions, bot no point in back-porting it). Github: https://github.com/python/cpython/pull/32376 --

[issue47234] PEP-484 "numeric tower" approach makes it hard/impossible to specify contracts in documentation

2022-04-06 Thread Ken Jin
Change by Ken Jin : -- nosy: -kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47245] Subprocess with vfork() is broken

2022-04-06 Thread Марк Коренберг
New submission from Марк Коренберг : Using vfork in #35823 is VERY tricky. Please comment out vfork() usage for now. Yes, we can (should) use vfork(), but we have to rewrite the child code. https://bugzilla.kernel.org/show_bug.cgi?id=215813 I would say it's URGENT. -- components:

[issue47245] Subprocess with vfork() is broken

2022-04-06 Thread Марк Коренберг
Марк Коренберг added the comment: Rewriting in a way that guarantee no stack (and heap) usage. Because stack is shared between child and parent. It seems there is no crossplatform way. Happily we can use some code like I wrote by link in the first message. OR, stick to posix_nspawn which is

[issue47245] Subprocess with vfork() is broken

2022-04-06 Thread Марк Коренберг
Марк Коренберг added the comment: https://github.com/python/cpython/blob/4a08c4c469d36f99d3a5e0f17ad82ab35dcf2835/Modules/_posixsubprocess.c#L717 child_exec(exec_array, argv, envp, cwd, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read,

[issue47245] Subprocess with vfork() is broken

2022-04-06 Thread Марк Коренберг
Марк Коренберг added the comment: Solution: https://github.com/bminor/glibc/blob/master/sysdeps/unix/sysv/linux/spawni.c#L309 In short - do not use vfork(). Use clone(CLONE_VM | CLONE_VFORK). and do something with stack. -- ___ Python tracker

[issue35823] Use vfork() in subprocess on Linux

2022-04-06 Thread Марк Коренберг
Марк Коренберг added the comment: See #47245. https://github.com/bminor/glibc/blob/master/sysdeps/unix/sysv/linux/spawni.c#L309 In short - do not use vfork(). Use clone(CLONE_VM | CLONE_VFORK). And build separate stack. Current implementation is heavily broken. Another guy has failed:

[issue46576] test_peg_generator is extremely slow

2022-04-06 Thread Jeremy Kloth
Change by Jeremy Kloth : -- pull_requests: +30420 pull_request: https://github.com/python/cpython/pull/32382 ___ Python tracker ___

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2022-04-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30421 pull_request: https://github.com/python/cpython/pull/32383 ___ Python tracker ___

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2022-04-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30422 pull_request: https://github.com/python/cpython/pull/32384 ___ Python tracker ___

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2022-04-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30423 pull_request: https://github.com/python/cpython/pull/32385 ___ Python tracker ___

[issue47245] potential undefined behavior with subprocess using vfork() on Linux

2022-04-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Can you provide a reproducable way to demonstrate evidence of a problem in CPython's use of the Linux libc vfork() implementation? A test case that causes a CPython parent or child process on Linux when built with HAVE_VFORK failing to function properly

[issue47103] Copy pgort140.dll when building for PGO

2022-04-06 Thread Steve Dower
Steve Dower added the comment: Backport is blocked on issue47104 (or a randomly successful CI run, which seems to occur occasionally). -- versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue47239] Python Launcher for Windows (`py -0`) no longer shows star ("*") for default version

2022-04-06 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2022-04-06 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +30425 pull_request: https://github.com/python/cpython/pull/32387 ___ Python tracker ___

  1   2   >