[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-03-07 Thread Alex Waygood
Alex Waygood added the comment: Thanks so much to Ken, Łukasz, Jelle, Guido, and everybody else who helped review these PRs! -- ___ Python tracker ___

[issue46953] use FASTCALL for __import__ builtin

2022-03-07 Thread Kumar Aditya
New submission from Kumar Aditya : Use FASTCALL for __import__ builtin. Benchmark: -- import pyperf runner = pyperf.Runner() runner.timeit(name="bench __import__", stmt="__import__('asyncio')"

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2022-03-07 Thread Inada Naoki
Inada Naoki added the comment: Relating issue: https://twitter.com/nedbat/status/1489233208713437190 Current overallocation strategy is rough. We need to make it more smooth. -- versions: +Python 3.11 -Python 3.9 ___ Python tracker

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2022-03-07 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39829] __len__ called twice in the list() constructor

2022-03-07 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39829] __len__ called twice in the list() constructor

2022-03-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: Related to Matt's idea is https://bugs.python.org/issue43574 -- nosy: +Dennis Sweeney ___ Python tracker ___

[issue46952] pip progress bar display bug

2022-03-07 Thread Dennis Sweeney
Change by Dennis Sweeney : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46952] pip progress bar display bug

2022-03-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: pip is maintained externally at https://github.com/pypa/pip , so that is likely a better place to open an issue about pip. -- nosy: +Dennis Sweeney ___ Python tracker

[issue46952] pip progress bar display bug

2022-03-07 Thread 미사일
Change by 미사일 : Added file: https://bugs.python.org/file50663/screen.jpg ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46952] pip progress bar display bug

2022-03-07 Thread 미사일
Change by 미사일 : -- components: -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46952] pip progress bar display bug

2022-03-07 Thread 미사일
New submission from 미사일 : Pip progress bar isn't connect each other and overlap with other components. -- components: 2to3 (2.x to 3.x conversion tool) messages: 414725 nosy: misileminecord priority: normal severity: normal status: open title: pip progress bar display bug versions:

[issue2771] Test issue

2022-03-07 Thread Ezio Melotti
Change by Ezio Melotti : -- dependencies: +Add math.tau, Python source code build fails with old mercurial superseder: -> Test issue ___ Python tracker ___

[issue39829] __len__ called twice in the list() constructor

2022-03-07 Thread Matt Wozniski
Matt Wozniski added the comment: Pardon me for necroing an old issue, but someone pointed out the surprising behavior of `__len__` being called twice by `list(iterable)`, and it caught my curiosity. https://github.com/python/cpython/commit/372d705d958964289d762953d0a61622755f5386 made it

[issue46951] Zipapp contents are in filesystem-dependent order

2022-03-07 Thread Henry Finucane
New submission from Henry Finucane : Which makes builds non-reproducible. There was some mention of fixing this in https://bugs.python.org/issue30693, but it never got done. -- components: Library (Lib) messages: 414723 nosy: h.finucane priority: normal pull_requests: 29864 severity:

[issue46494] Mention typing_extensions in the typing documentation

2022-03-07 Thread miss-islington
miss-islington added the comment: New changeset 0c718e02f60f98275c62e8a2a152f086650e88ea by Miss Islington (bot) in branch '3.9': bpo-46494: Mention the typing_extensions pkg in typing docs (GH-31260) https://github.com/python/cpython/commit/0c718e02f60f98275c62e8a2a152f086650e88ea

[issue46494] Mention typing_extensions in the typing documentation

2022-03-07 Thread miss-islington
miss-islington added the comment: New changeset e053f0e9f41791095a924e2aceaaa025a058ed57 by Miss Islington (bot) in branch '3.10': bpo-46494: Mention the typing_extensions pkg in typing docs (GH-31260) https://github.com/python/cpython/commit/e053f0e9f41791095a924e2aceaaa025a058ed57

[issue46878] [sqlite3] remove "non-standard" from docstrings

2022-03-07 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 4d95fa1ac5d31ff450fb2f31b55ce1eb99d6efcb by Erlend Egeberg Aasland in branch 'main': bpo-46878: Purge 'non-standard' from sqlite3 docstrings (GH-31612) https://github.com/python/cpython/commit/4d95fa1ac5d31ff450fb2f31b55ce1eb99d6efcb

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-03-07 Thread miss-islington
miss-islington added the comment: New changeset e83f084084296a9b16b83b324a715045d3614c92 by Miss Islington (bot) in branch '3.9': bpo-45680: Improve docs on subscriptions w.r.t. `GenericAlias` objects (GH-29479)

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-03-07 Thread miss-islington
miss-islington added the comment: New changeset 06108c08ddbb4efda804eb74dd33928348102e6f by Miss Islington (bot) in branch '3.10': bpo-45680: Improve docs on subscriptions w.r.t. `GenericAlias` objects (GH-29479)

[issue46494] Mention typing_extensions in the typing documentation

2022-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +29863 pull_request: https://github.com/python/cpython/pull/31747 ___ Python tracker ___

[issue46494] Mention typing_extensions in the typing documentation

2022-03-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +29862 pull_request: https://github.com/python/cpython/pull/31746 ___ Python tracker

[issue46494] Mention typing_extensions in the typing documentation

2022-03-07 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46494] Mention typing_extensions in the typing documentation

2022-03-07 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 8debeed3075bf4d7e568e65da16bec63cf276f4f by Meer Suri in branch 'main': bpo-46494: Mention the typing_extensions pkg in typing docs (GH-31260) https://github.com/python/cpython/commit/8debeed3075bf4d7e568e65da16bec63cf276f4f --

[issue43224] Add support for PEP 646

2022-03-07 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : New changeset 7a793a388b017be635ea41ef75b0fd8bcf75a309 by Matthew Rahtz in branch 'main': bpo-43224: Implement PEP 646 changes to typing.py (GH-31021) https://github.com/python/cpython/commit/7a793a388b017be635ea41ef75b0fd8bcf75a309 --

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-03-07 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: And now I think we're really done! Thanks for all your work here @AlexWaygood. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46170] Improving the error message when subclassing NewType

2022-03-07 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46170] Improving the error message when subclassing NewType

2022-03-07 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset f391f9bf28f0bba7939d9f9e5a7a6396d2b0df62 by James Hilton-Balfe in branch 'main': bpo-46170: Improve the error message when subclassing NewType (GH-30268) https://github.com/python/cpython/commit/f391f9bf28f0bba7939d9f9e5a7a6396d2b0df62

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-03-07 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 50731297a9b6d57eec3b3f89522785b23f7b3e71 by Alex Waygood in branch 'main': bpo-45680: Improve docs on subscriptions w.r.t. `GenericAlias` objects (GH-29479) https://github.com/python/cpython/commit/50731297a9b6d57eec3b3f89522785b23f7b3e71

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +29861 pull_request: https://github.com/python/cpython/pull/31744 ___ Python tracker ___

[issue45680] Documentation on `GenericAlias` objects and `__class_getitem__` could be improved

2022-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +29860 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/31743 ___ Python tracker ___

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Is there anything on our end we can do to prevent this kind of issue in the future? Am I wrong to see this as just fixing our package to avoid a design flaw in Windows OS level package management? Certainly other packages in the world must run into

[issue46947] unicodedata.name gives ValueError for control characters

2022-03-07 Thread Joe Cool
Joe Cool added the comment: My recommendation would be to add a keyword parameter, defaulting to False, to name(), something like give_full_alias, or maybe errors=“give_full_alias” like the IO functions. In the meantime, as the author of perllib, I had to make my own dict to return to the

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-07 Thread Guido van Rossum
Guido van Rossum added the comment: Playing tricks where compile-time and run-time see slightly different types is probably more productive than trying to revert a PR that was in Python 3.9 and 3.10. :-) I'm not opposed to supporting generic NamedTuple, but I expect the fix will never hit

[issue46841] Inline bytecode caches

2022-03-07 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +29859 pull_request: https://github.com/python/cpython/pull/31742 ___ Python tracker ___

[issue46947] unicodedata.name gives ValueError for control characters

2022-03-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: The behaviour is technically correct, but confusing and unfortunate, and I don't think we can fix it. Unicode does not define names for the ASCII control characters. But it does define aliases for them, based on the C0 control char standard.

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread Ned Deily
Ned Deily added the comment: New changeset f656bc1cdbdfaaa07f66ed97e011b258b97e2788 by Miss Islington (bot) in branch '3.7': bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736) (GH-31741) https://github.com/python/cpython/commit/f656bc1cdbdfaaa07f66ed97e011b258b97e2788 --

[issue45806] Cannot Recover From StackOverflow in 3.9 Tests

2022-03-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: Should this be backported to make the 3.8 Buildbots happy? -- ___ Python tracker ___ ___

[issue43923] Can't create generic NamedTuple as of py3.9

2022-03-07 Thread Steven Silvester
Steven Silvester added the comment: The use case that prompted https://github.com/python/cpython/pull/31679 is that we are adding typings to `PyMongo`. We are late to using typings, because we only recently dropped Python 2.7 support. We have an existing options class that subclasses

[issue46933] Make pwd module optional for wasm32-emscripten and wasi

2022-03-07 Thread Christian Heimes
Christian Heimes added the comment: New changeset 47cca0492b3c379823d4bdb600be56a633e5bb88 by Erlend Egeberg Aasland in branch 'main': bpo-46933: Fix make distclean regression (GH-31737) https://github.com/python/cpython/commit/47cca0492b3c379823d4bdb600be56a633e5bb88 --

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread miss-islington
miss-islington added the comment: New changeset f46a04469114047ff7a4078619450c590ae3f287 by Miss Islington (bot) in branch '3.9': bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736) https://github.com/python/cpython/commit/f46a04469114047ff7a4078619450c590ae3f287 --

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread miss-islington
miss-islington added the comment: New changeset 1e52e782f9742242923dec43c2bf8c1455a531e7 by Miss Islington (bot) in branch '3.10': bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736) https://github.com/python/cpython/commit/1e52e782f9742242923dec43c2bf8c1455a531e7 --

[issue46890] venv does not create "python" link in python 3.11

2022-03-07 Thread Steve Dower
Steve Dower added the comment: > This could be problematic, adding a suitably named file outside of $PREFIX > breaks the python installation. Might be worth changing it then. I double/triple checked whether searching up for the zip file was the old behaviour, and it sure seemed to be (it

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +29858 pull_request: https://github.com/python/cpython/pull/31741 ___ Python tracker ___

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +29857 pull_request: https://github.com/python/cpython/pull/31740 ___ Python tracker ___

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +29856 pull_request: https://github.com/python/cpython/pull/31739 ___ Python tracker ___

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +29855 pull_request: https://github.com/python/cpython/pull/31738 ___ Python tracker

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset 176835c3d5c70f4c1b152cc2062b549144e37094 by Steve Dower in branch 'main': bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736) https://github.com/python/cpython/commit/176835c3d5c70f4c1b152cc2062b549144e37094 --

[issue46890] venv does not create "python" link in python 3.11

2022-03-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: WITH_NEXT_FRAMEWORK is a compile time option, I've added it to globals in values like PREFIX are added. That way the python code can behave differently for framework builds (which appears to be needed). There are two big problems with my patches: -

[issue46933] Make pwd module optional for wasm32-emscripten and wasi

2022-03-07 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland nosy_count: 1.0 -> 2.0 pull_requests: +29854 pull_request: https://github.com/python/cpython/pull/31737 ___ Python tracker

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +29853 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31736 ___ Python tracker ___

[issue46947] unicodedata.name gives ValueError for control characters

2022-03-07 Thread Joe Cool
Joe Cool added the comment: Note: This is an issue for all chars in the ordinal range 0 thru 31. -- ___ Python tracker ___ ___

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset e1639f361ee0dfbf08bb8538839d3d557c1a995c by Steve Dower in branch '3.9': bpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-2016-3189 and CVE-2019-12900 (GH-31732)

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46841] Inline bytecode caches

2022-03-07 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset f193631387bfee99a812e39b05d5b7e6384b57f5 by Brandt Bucher in branch 'main': bpo-46841: Use inline caching for calls (GH-31709) https://github.com/python/cpython/commit/f193631387bfee99a812e39b05d5b7e6384b57f5 --

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Ned Deily
Ned Deily added the comment: New changeset 4a3c610cd635f14747cf02c77908e80620aae6ea by Steve Dower in branch '3.7': bpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-2016-3189 and CVE-2019-12900 (GH-31732) (GH-31735)

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-07 Thread Martin Panter
Martin Panter added the comment: The ctypes overflow is probably the same as described in Issue 28169 and Issue 15119 -- nosy: +martin.panter ___ Python tracker ___

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +29851 pull_request: https://github.com/python/cpython/pull/31734 ___ Python tracker ___

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +29852 pull_request: https://github.com/python/cpython/pull/31735 ___ Python tracker ___

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +29850 pull_request: https://github.com/python/cpython/pull/31733 ___ Python tracker ___

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset 58d576a43cb1800dd68f06a429d7d41f746a8c01 by Steve Dower in branch '3.10': bpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-2016-3189 and CVE-2019-12900 (GH-31732)

[issue46945] Quantifier and Expanded Regex Expression Gives Different Results

2022-03-07 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Regular Expressions -Library (Lib) nosy: +ezio.melotti, mrabarnett ___ Python tracker ___

[issue46932] Please update bundled libexpat to 2.4.7 with an important fix

2022-03-07 Thread Ned Deily
Ned Deily added the comment: We haven't released 2.4.6 yet for maintenance/security branches so we probably should update to 2.4.7 first. -- nosy: +corona10, lukasz.langa, ned.deily, pablogsal priority: normal -> release blocker ___ Python tracker

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +29849 pull_request: https://github.com/python/cpython/pull/31732 ___ Python tracker ___

[issue46950] Windows 11 venv

2022-03-07 Thread Darrel O'Pry
New submission from Darrel O'Pry : I created a virtual env on windows 11. When I run pip install -r "..." I get the error ``` C:\Users\dopry\src\Client\some.domain.com\django> pip install -r .\requirements_to_freeze.txt Traceback (most recent call last): File

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset 105b9ac00174d7bcc653f9e9dc5052215e197c77 by Steve Dower in branch 'main': bpo-44549: Update bzip2 to 1.0.8 in Windows builds to mitigate CVE-2016-3189 and CVE-2019-12900 (GH-31731)

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Ned Deily
Change by Ned Deily : -- priority: critical -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46744] installers on ARM64 suggest wrong folders

2022-03-07 Thread Steve Dower
Steve Dower added the comment: Good call on the batch file. It should be easy enough to make those options case-insensitive, and to support both forms of x86 flag. I'll leave this issue open for that if someone wants to have a go, otherwise I'll get to them at some point. --

[issue41370] PEP 585 and ForwardRef

2022-03-07 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset b465b606049f6f7dd0711cb031fdaa251818741a by Niklas Rosenstein in branch 'main': bpo-41370: Evaluate strings as forward refs in PEP 585 generics (GH-30900) https://github.com/python/cpython/commit/b465b606049f6f7dd0711cb031fdaa251818741a

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Steve Dower added the comment: Adding RMs - this should get merged before we do any security releases for issue46948 -- nosy: +lukasz.langa, pablogsal versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +29848 pull_request: https://github.com/python/cpython/pull/31731 ___ Python tracker ___

[issue44549] Update Windows installer to use bzip2 1.0.8

2022-03-07 Thread Steve Dower
Steve Dower added the comment: cpython-source-deps was updated middle of last year, but apparently we never merged the main repo change to use it. I'll do it now. -- ___ Python tracker

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Ned Deily
Ned Deily added the comment: New changeset 97476271275a4bd1340230677b7301d7b78b3317 by Steve Dower in branch '3.7': bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly uses the install path during repair (GH-31730)

[issue46949] Print an indication if traceback exceeds sys.tracebacklimit

2022-03-07 Thread Irit Katriel
Irit Katriel added the comment: Re what the limit means, it’s a bit messier than that, see issue38197. -- ___ Python tracker ___

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset 101a1bee1953b82339115c5e648e1717359c78eb by Steve Dower in branch '3.9': bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly uses the install path during repair (GH-31728)

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset 77446d2aa56e9e3262d9d22473420ff5e907 by Steve Dower in branch 'main': bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly uses the install path during repair (GH-31726)

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
Steve Dower added the comment: New changeset 136842c91b5783e205e217c4855baa9dadd4ad41 by Steve Dower in branch '3.10': bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly uses the install path during repair (GH-31727)

[issue46949] Print an indication if traceback exceeds sys.tracebacklimit

2022-03-07 Thread Eric V. Smith
Eric V. Smith added the comment: If you go with the second idea, I'd say something like f"More than {2 * tracebacklimit} additional stack frames not shown". It seems handy to know the magnitude of the problem. -- nosy: +eric.smith ___ Python

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
Steve Dower added the comment: Yeah, this is fine to still be in alpha 6. Very unlikely that anyone is making it a system-wide default anyway, and certainly not in secure/production systems. -- ___ Python tracker

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The 3.11.0a6 release is ongoing. I assume is ok to not block this release on this issue, given that an alpha is inherently unsafe -- ___ Python tracker

[issue46949] Print an indication if traceback exceeds sys.tracebacklimit

2022-03-07 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: It skips the least recent frames: >>> def error(): 1 / 0 ... >>> def g(): error() ... >>> def f(): g() ... >>> sys.tracebacklimit = 2 >>> f() Traceback (most recent call last): File "", line 1, in g File "", line 1, in error ZeroDivisionError: division

[issue46890] venv does not create "python" link in python 3.11

2022-03-07 Thread Steve Dower
Steve Dower added the comment: > I have a patch that seems to do the right thing. It required adding > WITH_NEXT_FRAMEWORK to the globals when evaluating getpath.py to detect this > scenario. I haven't had a chance to go through all your changes, and I'm only very vaguely familiar with

[issue46949] Print an indication if traceback exceeds sys.tracebacklimit

2022-03-07 Thread Guido van Rossum
Guido van Rossum added the comment: There is general confusion as to which part of the traceback is truncated. If I have main() -> f() -> g() -> error(), and the limit is 2, does it print main() -> f(), or does it print g() -> error()? (I'm not even sure which would be more useful.) FWIW

[issue46949] Print an indication if traceback exceeds sys.tracebacklimit

2022-03-07 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : If the number of frames in a traceback exceeds sys.tracebacklimit (which defaults to 1000), any remaining frames are silently dropped. See https://docs.python.org/3.10/library/sys.html#sys.tracebacklimit. This is confusing to users. We should print some

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +29847 pull_request: https://github.com/python/cpython/pull/31730 ___ Python tracker ___

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +29846 pull_request: https://github.com/python/cpython/pull/31729 ___ Python tracker ___

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +29845 pull_request: https://github.com/python/cpython/pull/31728 ___ Python tracker ___

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +29844 pull_request: https://github.com/python/cpython/pull/31727 ___ Python tracker ___

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +29843 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31726 ___ Python tracker

[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-07 Thread Steve Dower
New submission from Steve Dower : CVE-2022-26488 is an escalation of privilege vulnerability in the Windows installer for the following releases of CPython: * 3.11.0a6 and earlier * 3.10.2 and earlier * 3.9.10 and earlier * 3.8.12 and earlier * All end-of-life releases of 3.5, 3.6 and 3.7

[issue46947] unicodedata.name gives ValueError for control characters

2022-03-07 Thread Joe Cool
New submission from Joe Cool : unicodedata.name gives ValueError for control characters, for example: >>> unicodedata.name('\x00') Traceback (most recent call last): File "", line 1, in ValueError: no such name >>> unicodedata.name('\t') Traceback (most recent call last): File "", line 1,

[issue46936] Fix grammar_grapher with the new forced directive

2022-03-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46936] Fix grammar_grapher with the new forced directive

2022-03-07 Thread Luca
Change by Luca : -- pull_requests: +29842 pull_request: https://github.com/python/cpython/pull/31719 ___ Python tracker ___ ___

[issue46945] Quantifier and Expanded Regex Expression Gives Different Results

2022-03-07 Thread Vedran Čačić
Vedran Čačić added the comment: Confirmed. On Python 3.10.2, >>> re.findall(r"(((\w)+\w*\3){2}|(\w)+(?=\w*\4)\w*(?!\4)(\w)\w*\5)\w*",'alabama') [] yet https://regex101.com/r/uT8gag/1 (with "Python" selected) says it should match. -- nosy: +veky

[issue46946] Port core types to Argument Clinic

2022-03-07 Thread Oleg Iarygin
Change by Oleg Iarygin : -- keywords: +patch pull_requests: +29841 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31725 ___ Python tracker ___

[issue46946] Port core types to Argument Clinic

2022-03-07 Thread Oleg Iarygin
New submission from Oleg Iarygin : This is done to: - update docstrings to current standards enforced by AC - get proper naming for arguments of impl-functions (for example, self instead of obj and instance) - strip boilerplate reducing current 16k lines of code to something little more

[issue46890] venv does not create "python" link in python 3.11

2022-03-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've attached a new patch file with some more tweaks, including the additional test case from msg414665. I've pretty sure that the changes to getpath.py are slightly worse in the new version, but aren't fully correct in the initial version as well (see my

[issue46890] venv does not create "python" link in python 3.11

2022-03-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm now in the fun position where the code works, but the test test_getpath.py fails. The test case below tries to test a venv in a framework build, but somehow fails to calculate prefix and exec_prefix correctly. The calculation does work when using a

[issue46940] Suggestion messages don't properly work in nested getattr calls

2022-03-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46890] venv does not create "python" link in python 3.11

2022-03-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is also dodgy: test_framework_macos (test.test_getpath.MockGetPathTests) ... Read link from /Library/Frameworks/Python.framework/Versions/9.8/Resources/Python.app/Contents/MacOS/Python Check if

[issue46945] Quantifier and Expanded Regex Expression Gives Different Results

2022-03-07 Thread Vivian D
New submission from Vivian D : Here are the steps that I went through to test my regular expressions in my command prompt (a file attachment shows this as well). I am using Windows 11, version 21H2: >>> import re >>> regex = r"(((\w)+\w*\3){2}|(\w)+(?=\w*\4)\w*(?!\4)(\w)\w*\5)\w*" >>>

  1   2   >