[issue46498] Add new triplets for loongarch64

2022-01-27 Thread Zhang Na
Zhang Na added the comment: loongarch64.diff has been modified according to the new toolchain spec. -- Added file: https://bugs.python.org/file50590/loongarch64-new.diff ___ Python tracker __

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-01-27 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, I didn't look into docs before writing. Now we have an interesting situation: the documentation reflects the desired state already but the code is not :) The PR should contain fixes for transports.py and sslproto.py only (plus a blurb record for NEWs)

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-01-27 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2022-01-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +29130 pull_request: https://github.com/python/cpython/pull/30951 ___ Python tracker _

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2022-01-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 897ce9018775bcd679fb49aa17258f8f6e818e23 by Illia Volochii in branch 'main': bpo-42982: Improve the text on suggested number of iterations of PBKDF2 (GH-24276) https://github.com/python/cpython/commit/897ce9018775bcd679fb49aa17258f8f6e818e23

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2022-01-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I reworked the PR and went with less specific text and linking to the NIST 800 132 appendix as guidance on how people should determine what is right for them. there is no one right number. it is application specific. thanks for everyone's valuable input!

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset 1ecc98dedb7ae77c2d806a70b52dfecdac39ff5b by Miss Islington (bot) in branch '3.10': bpo-42982: Improve the text on suggested number of iterations of PBKDF2 (GH-24276) https://github.com/python/cpython/commit/1ecc98dedb7ae77c2d806a70b52dfecdac39f

[issue45173] Remove configparser deprecations

2022-01-27 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- pull_requests: +29131 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30952 ___ Python tracker ___

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

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset 606e496dd6e2ace298532da200169124c26ae0f2 by Christian Heimes in branch 'main': bpo-40280: Use presence of msvcrt module to detect Windows (GH-30930) https://github.com/python/cpython/commit/606e496dd6e2ace298532da200169124c26ae0f2 --

[issue23556] [doc] Scope for raise without argument is different in Python 2 and 3

2022-01-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +29132 pull_request: https://github.com/python/cpython/pull/30953 ___ Python tracker

[issue23556] [doc] Scope for raise without argument is different in Python 2 and 3

2022-01-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +29133 pull_request: https://github.com/python/cpython/pull/30954 ___ Python tracker ___ __

[issue23556] [doc] Scope for raise without argument is different in Python 2 and 3

2022-01-27 Thread Irit Katriel
Irit Katriel added the comment: New changeset 08c0ed2d9c0d01ad1a5adc0787bc75e4e90cbb85 by Kinshuk Dua in branch 'main': bpo-23556: [doc] Fix inaccuracy in documentation for raise without args. Improve tests for context in nested except handlers. (GH-29236) https://github.com/python/cpython/

[issue46544] `textwrap.TextWrapper` leaks two intermediate vars into class namespace

2022-01-27 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now this works: ``` >>> import textwrap >>> textwrap.TextWrapper.x ' ' >>> textwrap.TextWrapper.uspace 32 ``` This happens because of these lines: https://github.com/python/cpython/blame/606e496dd6e2ace298532da200169124c26ae0f2/Lib/textwrap.py#L66-L6

[issue46545] `textwrap.TextWrapper` leaks two intermediate vars into class namespace

2022-01-27 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now this works: ``` >>> import textwrap >>> textwrap.TextWrapper.x ' ' >>> textwrap.TextWrapper.uspace 32 ``` This happens because of these lines: https://github.com/python/cpython/blame/606e496dd6e2ace298532da200169124c26ae0f2/Lib/textwrap.py#L66-L6

[issue46545] `textwrap.TextWrapper` leaks two intermediate vars into class namespace

2022-01-27 Thread Nikita Sobolev
Nikita Sobolev added the comment: Oups, somehow I created two identical issues. Closing this one. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker __

[issue46544] `textwrap.TextWrapper` leaks two intermediate vars into class namespace

2022-01-27 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29134 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30955 ___ Python tracker ___ _

[issue34781] infinite waiting in multiprocessing.Pool

2022-01-27 Thread Antonio Vázquez Blanco
Change by Antonio Vázquez Blanco : -- nosy: +antonio.vazquez ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue23556] [doc] Scope for raise without argument is different in Python 2 and 3

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset 1440dd343871645c187028916dd6ee97300d2557 by Miss Islington (bot) in branch '3.9': bpo-23556: [doc] Fix inaccuracy in documentation for raise without args. Improve tests for context in nested except handlers. (GH-29236) https://github.com/pytho

[issue23556] [doc] Scope for raise without argument is different in Python 2 and 3

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset 2572c670d42887e4b1d2475b8da2e9bf6e0aa558 by Miss Islington (bot) in branch '3.10': [3.10] bpo-23556: [doc] Fix inaccuracy in documentation for raise without args. Improve tests for context in nested except handlers. (GH-29236) (GH-30953) https

[issue23556] [doc] Scope for raise without argument is different in Python 2 and 3

2022-01-27 Thread Irit Katriel
Irit Katriel added the comment: Thank you @a3nm, @kinshukdua2 and @martin.panter. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue46546] `importlib.metadata.DeprecatedList` leaks `method_name` variable

2022-01-27 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now in `DeprecatedList` there's a possibly unwated name leak of `method_name` here: https://github.com/python/cpython/blob/08c0ed2d9c0d01ad1a5adc0787bc75e4e90cbb85/Lib/importlib/metadata/__init__.py#L295-L308 ``` for method_name in [ '__setit

[issue46546] `importlib.metadata.DeprecatedList` leaks `method_name` variable

2022-01-27 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29135 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30956 ___ Python tracker ___ _

[issue46547] `pydoc.Helper` leaks several `for` loop variables

2022-01-27 Thread Nikita Sobolev
New submission from Nikita Sobolev : Here's the problem. `pydoc.Helper` is defined as: ``` class Helper: for topic, symbols_ in _symbols_inverse.items(): for symbol in symbols_: topics = symbols.get(symbol, topic) if topic not in topics: topic

[issue46547] `pydoc.Helper` leaks several `for` loop variables

2022-01-27 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29136 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30957 ___ Python tracker ___ _

[issue46548] macOS installers cannot be signed on Monterey

2022-01-27 Thread Robert Xiao
New submission from Robert Xiao : I am building unofficial macOS packages for personal use. My main build machine is running macOS Monterey 12.1 and Xcode 13.2.1. I recently attempted to build Python 3.8.12 as a package using build-installer.py. This worked fine after a bit of dependency wran

[issue46548] macOS installers cannot be signed on Monterey

2022-01-27 Thread Robert Xiao
Change by Robert Xiao : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue42343] threading.local documentation should be on the net...

2022-01-27 Thread Matt B
Matt B added the comment: @rhettinger, the docstring[1] alluded to in the docs is quite lengthy. Are you suggesting copying it straight across to the standard library documentation? If not, can you give (or link to) some documentation standards or other guidance on constructing a viable PR?

[issue46544] `textwrap.TextWrapper` leaks two intermediate vars into class namespace

2022-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 82bce54614f8116a40454fbbbf96a3fd460ca7df by Nikita Sobolev in branch 'main': bpo-46544: Do not leak `x` and `uspace` in textwrap.TextWrapper (GH-30955) https://github.com/python/cpython/commit/82bce54614f8116a40454fbbbf96a3fd460ca7df ---

[issue42343] threading.local documentation should be on the net...

2022-01-27 Thread Matt B
Matt B added the comment: @ztane, if you are interested in trying your hand at a PR, these will be generally useful: * https://devguide.python.org/ * https://devguide.python.org/documenting/ -- ___ Python tracker

[issue46487] `_SSLProtocolTransport` doesn't have the `get_write_buffer_limits` implementation.

2022-01-27 Thread Nova
Change by Nova : -- keywords: +patch pull_requests: +29137 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30958 ___ Python tracker ___ ___

[issue46548] macOS installers cannot be signed on Monterey

2022-01-27 Thread Robert Xiao
Robert Xiao added the comment: I noticed that the official installer seems to be built using an entirely different process, as it produces a single-file .pkg in xar format with an embedded Distribution file, rather than an .mpkg directory. Is there documentation on how these packages are gen

[issue44791] Substitution of ParamSpec in Concatenate

2022-01-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +29138 pull_request: https://github.com/python/cpython/pull/30959 ___ Python tracker _

[issue44791] Substitution of ParamSpec in Concatenate

2022-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ecfacc362dd7fef7715dcd94f2e2ca6c622ef115 by Serhiy Storchaka in branch 'main': bpo-44791: Fix substitution of ParamSpec in Concatenate with different parameter expressions (GH-27518) https://github.com/python/cpython/commit/ecfacc362dd7fef771

[issue44791] Substitution of ParamSpec in Concatenate

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset 89db09029566cf3af04b540e33fe1ff9b32f8c8b by Miss Islington (bot) in branch '3.10': bpo-44791: Fix substitution of ParamSpec in Concatenate with different parameter expressions (GH-27518) https://github.com/python/cpython/commit/89db09029566cf3a

[issue46476] Not all memory allocated by _Py_Quicken() is released at Python exit

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset c7f810b34d91a5c2fbe0a8385562015d2dd961f2 by Kumar Aditya in branch 'main': bpo-46476: Fix memory leak in code objects generated by deepfreeze (GH-30853) https://github.com/python/cpython/commit/c7f810b34d91a5c2fbe0a8385562015d2dd961f2

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2022-01-27 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Can we close this issue? Or is there a remaining task? 3.9 is still affected; we should fix those types first. -- ___ Python tracker __

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2022-01-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- versions: +Python 3.9 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue43916] Check that new heap types cannot be created uninitialised: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2022-01-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- title: Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag -> Check that new heap types cannot be created uninitialised: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

[issue46476] Not all memory allocated by _Py_Quicken() is released at Python exit

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks Kumar! Your change fixed my issue: $ ./python -I -X showrefcount -c pass [-5 refs, 0 blocks] Python no longer leaks memory at exit: it "leaks" exactly *zero* memory block. The negative reference count is likely caused by bpo-46449. -- resolut

[issue43916] Check that new heap types cannot be created uninitialised: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2022-01-27 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI: There are only two bug-fix releases left for 3.9. -- ___ Python tracker ___ ___ Python-bu

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: The bpo-46476 added _Py_Deepfreeze_Fini() and _PyStaticCode_Dealloc() functions: commit c7f810b34d91a5c2fbe0a8385562015d2dd961f2. If we need to ajust _Py_RefTotal manually, *maybe* it can be done there? I don't understand well how static/immortal code object

[issue46549] Error in list comprehension conditionals when used in class attributes

2022-01-27 Thread din14970
New submission from din14970 : I discovered this one by accident. When using a conditional inside a list comprehension in class attributes one can get some unexpected behavior. The following does not work: ``` class TestClass: list_1 = [1, 2, 3, 4, 5] exclude = [2, 4] list_2 = [i

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread Petr Viktorin
Petr Viktorin added the comment: > The first and last test should use assertAlmostEqual with a suitable > tolerance (the default tolerance is probably fine). The merged PR only added tolerance to the last test. On some architectures, the first test still fails. (No one is to blame -- this co

[issue46458] Optimise try-except code generation for the happy path

2022-01-27 Thread Irit Katriel
Irit Katriel added the comment: New changeset 3d2ce3471646704ebd5252f4b20f065f139a53b1 by Irit Katriel in branch 'main': bpo-46458: emit code for else of a try block immediately after the try body (GH-30751) https://github.com/python/cpython/commit/3d2ce3471646704ebd5252f4b20f065f139a53b1

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks to recent enhancements, epecially in bpo-46417, the last memory blocks are now released at Python exit! The initial issue has been fixed!!! This bug was 15 years old! Current main branch: $ ./python -I -X showrefcount -c pass [-5 refs, 0 blocks] "0 b

[issue46549] Error in list comprehension conditionals when used in class attributes

2022-01-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: I believe this is a duplicate of bpo-45899 -- nosy: +Dennis Sweeney ___ Python tracker ___ ___ Py

[issue43916] Check that new heap types cannot be created uninitialised: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: > 3.9 is still affected; we should fix those types first. I'm against backporting the new type flag, but we can try to set explicitly tp_set to NULL *after* calling PyType_Ready(). -- ___ Python tracker

[issue46549] Error in list comprehension conditionals when used in class attributes

2022-01-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: See also https://stackoverflow.com/questions/13905741/accessing-class-variables-from-a-list-comprehension-in-the-class-definition -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python t

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +29139 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/30960 ___ Python tracker ___ __

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset aa78287bc6d1c4fc07ee134642eb72db67b771a0 by Karolina Surma in branch 'main': bpo-44734: Fix floating point precision in test_turtle (GH-30910) https://github.com/python/cpython/commit/aa78287bc6d1c4fc07ee134642eb72db67b771a0 -- ___

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +29140 pull_request: https://github.com/python/cpython/pull/30961 ___ Python tracker ___ __

[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset 5c39e474dbd61397c2ff877fa17d742bf4646702 by Petr Viktorin in branch '3.10': [3.10] bpo-45703: Invalidate _NamespacePath cache on importlib.invalidate_cache (GH-29384) (GH-30922) https://github.com/python/cpython/commit/5c39e474dbd61397c2ff877fa

[issue46098] Missing test for multi-line errors in traceback

2022-01-27 Thread Irit Katriel
Irit Katriel added the comment: New changeset 183f8d57fa5959e7578e7f470edc364edb23caca by Russel Webber in branch 'main': bpo-46098: Add test for multiline syntax error traceback (GH-30695) https://github.com/python/cpython/commit/183f8d57fa5959e7578e7f470edc364edb23caca -- ___

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2022-01-27 Thread April King
April King added the comment: The code snippet still uses 10. Given that many people will simply copy-and-paste without questioning, should we update that too? -- ___ Python tracker

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset 486a4b382943ed4c965a0a36b177e8e0b083a6e5 by Miss Islington (bot) in branch '3.10': bpo-44734: Fix floating point precision in test_turtle (GH-30910) https://github.com/python/cpython/commit/486a4b382943ed4c965a0a36b177e8e0b083a6e5 --

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset 8e98ccc4c3fd1a12f168466422d206d814eba0f9 by Miss Islington (bot) in branch '3.9': bpo-44734: Fix floating point precision in test_turtle (GH-30910) https://github.com/python/cpython/commit/8e98ccc4c3fd1a12f168466422d206d814eba0f9 -- _

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread Petr Viktorin
Change by Petr Viktorin : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue46098] Missing test for multi-line errors in traceback

2022-01-27 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.10 ___ Python tracker ___

[issue46098] Missing test for multi-line errors in traceback

2022-01-27 Thread Irit Katriel
Change by Irit Katriel : -- components: +Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue46546] `importlib.metadata.DeprecatedList` leaks `method_name` variable

2022-01-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Nikita for the report. I agree, it's inelegant that this property leaks. Because this code is synced with importlib_metadata, I'm not sure it's worth the effort of changing it here. Your change here implies a cherry-pick to the backport and updating

[issue31582] Add _pth breadcrumb to sys.path documentation

2022-01-27 Thread Russel Webber
Russel Webber added the comment: I am happy to take a look at improving the documentation. I see the new getpath.py has very extensive commenting. Should I simply mention ._pth files as in the original issue from 5 years ago, or are you looking for documentation of how sys.path is initialise

[issue46416] Direct invocation of `Lib/test/test_typing.py` fails

2022-01-27 Thread Nikita Sobolev
Change by Nikita Sobolev : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue46449] Deep-freezed modules create inconsistency in sys.gettotalrefcount() (_Py_Reftotal)

2022-01-27 Thread Christian Heimes
Christian Heimes added the comment: The problem is in PyImport_ImportFrozenModuleObject -> unmarshal_frozen_code() -> frozen_info.get_code() -> _Py_get_importlib__bootstrap_external_toplevel() call chain. PyImport_ImportFrozenModuleObject() expects unmarshal_frozen_code() to return a strong

[issue46546] `importlib.metadata.DeprecatedList` leaks `method_name` variable

2022-01-27 Thread Nikita Sobolev
Nikita Sobolev added the comment: Thanks, Jason! I've submitted https://github.com/python/importlib_metadata/pull/365 > What's the harm in leaving this attribute on a class that is itself standing > in for deprecated behavior and slated for removal? I think it does not do much harm, but the

[issue46550] __slots__ updates despite being read-only

2022-01-27 Thread Ian Lee
New submission from Ian Lee : Hi there - I admit that I don't really understand the internals here, so maybe there is a good reason for this, but I thought it was weird when I just ran across it. If I create a new class `A`, and set it's `__slots`: ```python ➜ ~ docker run -it python:3.10 P

[issue46285] protocol_version in http.server.test can be ignored

2022-01-27 Thread Éric Araujo
Éric Araujo added the comment: There is no bug with partial itself. I have tried to explain this and I can’t write it in another way. -- ___ Python tracker ___ __

[issue46551] Provide number of workers option for fast PGO build time

2022-01-27 Thread Dong-hee Na
New submission from Dong-hee Na : Compiling CPython with the PGO option is good for CPython performance but compile time is very painful since PGO profiling is executed with a single thread. When I tested with run -m test --pgo -j8, it doesn't affect to optimized result with fast build time.

[issue46550] __slots__ updates despite being read-only

2022-01-27 Thread Nikita Sobolev
Nikita Sobolev added the comment: It does not happen on `3.11` (main): ``` Python 3.11.0a4+ (heads/main-dirty:ef3ef6fa43, Jan 20 2022, 20:48:25) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> class A: ... __slots__ =

[issue46550] __slots__ updates despite being read-only

2022-01-27 Thread Ian Lee
Ian Lee added the comment: @sobolevn - Hmm, interesting.. I tested in python 3.9 which I had available, and I can reproduce your result, but I think it's different because you are using a tuple. If I use a list then I see my same reported behavior in 3.9: ```python Python 3.9.10 (main, Jan

[issue46535] Possible bug: pdb causes exception

2022-01-27 Thread Stefan Ecklebe
Change by Stefan Ecklebe : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue46550] __slots__ updates despite being read-only

2022-01-27 Thread Eryk Sun
Eryk Sun added the comment: Please read about augmented assignment [1]. In the REPL, use help("+="). An augmented assignment evaluates the target (which, unlike normal assignment statements, cannot be an unpacking) and the expression list, performs the binary operation specific to

[issue46551] Provide number of workers option for fast PGO build time

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: > When I tested with run -m test --pgo -j8, it doesn't affect to optimized > result with fast build time. You only test libregrtest.main and libregrtest.runtest_mp modules which don't execute code. Does it mean that running tests is useless to train the PGO?

[issue7057] tkinter doc: more 3.x updates

2022-01-27 Thread Zachary Ware
Zachary Ware added the comment: Trusting Mark's diagnosis, I'm closing the issue. -- nosy: +zach.ware resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker _

[issue10943] abitype: Need better support to port C extension modules to the stable C API

2022-01-27 Thread Zachary Ware
Zachary Ware added the comment: Tools/scripts/abitype.py hasn't seen much maintenance in 11 years, but it also seems not to have seen much use. Patches would be accepted, but priority is low enough that I'm going to go ahead and close the issue. -- nosy: +zach.ware resolution: -> o

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2022-01-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +29141 pull_request: https://github.com/python/cpython/pull/30962 ___ Python tracker _

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2022-01-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +29142 pull_request: https://github.com/python/cpython/pull/30963 ___ Python tracker ___ __

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2022-01-27 Thread Zachary Ware
Zachary Ware added the comment: With the readme updated (and backports in progress), I'm closing the issue. -- nosy: -miss-islington resolution: -> fixed stage: patch review -> needs patch status: open -> closed versions: +Python 3.11 -Python 3.8

[issue46539] typing: forward references don't understand special type forms

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset 37577033baadf5f4a30d0998bae7d26f11a694e2 by Miss Islington (bot) in branch '3.9': bpo-46539: Pass status of special typeforms to forward references (GH-30926) https://github.com/python/cpython/commit/37577033baadf5f4a30d0998bae7d26f11a694e2 --

[issue46539] typing: forward references don't understand special type forms

2022-01-27 Thread miss-islington
miss-islington added the comment: New changeset bfcb41420a326ec353740d8180ffbf402746fa33 by Miss Islington (bot) in branch '3.10': bpo-46539: Pass status of special typeforms to forward references (GH-30926) https://github.com/python/cpython/commit/bfcb41420a326ec353740d8180ffbf402746fa33 -

[issue46551] Provide number of workers option for fast PGO build time

2022-01-27 Thread Dong-hee Na
Dong-hee Na added the comment: > You only test libregrtest.main and libregrtest.runtest_mp modules which > > don't execute code. Does it mean that running tests is useless to train > the > PGO? Sorry, I didn't check all affects except performance regression, and there was already related dis

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2022-01-27 Thread Zachary Ware
Zachary Ware added the comment: New changeset a8912a0f8d9eba6d502c37d51f9933e976db by Miss Islington (bot) in branch '3.10': bpo-29844: Remove obsolete paragraph from Tools/msi/README.txt (GH-29141) https://github.com/python/cpython/commit/a8912a0f8d9eba6d502c37d51f9933e976db --

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2022-01-27 Thread Zachary Ware
Zachary Ware added the comment: New changeset 7c8d1f0238842fb8da099e797eea5973b66638a9 by Miss Islington (bot) in branch '3.9': bpo-29844: Remove obsolete paragraph from Tools/msi/README.txt (GH-29141) https://github.com/python/cpython/commit/7c8d1f0238842fb8da099e797eea5973b66638a9 ---

[issue46378] Experiment with LLVM BOLT binary optimizer

2022-01-27 Thread Dong-hee Na
Dong-hee Na added the comment: Only 1% gain, so we decided not to adopt it yet. see: https://github.com/faster-cpython/ideas/issues/224#issuecomment-1022371595 -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-01-27 Thread Henry Schreiner
Henry Schreiner added the comment: It would be great to get this looked at before things start getting too locked in for 3.11! -- ___ Python tracker ___ _

[issue44791] Substitution of ParamSpec in Concatenate

2022-01-27 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue40077] Convert static types to heap types: use PyType_FromSpec()

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: I used the following shell command to search remaining static types: --- grep -E 'static PyTypeObject [a-zA-Z_0-9]+ *(;|= *{|) *$' $(find -name "*.c") --- I found 86 static types in 17 files: * PC/_msi.c: * msidb_Type * msiview_Type * record_Type * s

[issue40077] Convert static types to heap types: use PyType_FromSpec()

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: And I found 135 more static types with this command: --- grep -E '^PyTypeObject [a-zA-Z_0-9]+ *(;|= *{|) *$' $(find -name "*.c") --- Types: Objects/cellobject.c: PyCell_Type Objects/sliceobject.c: PyEllipsis_Type Objects/sliceobject.c: PySlice_Type Objects/un

[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7

2022-01-27 Thread Zachary Ware
Zachary Ware added the comment: BTW, we do have an Alpine buildbot worker in the unstable set, running only on the `main` branch: https://buildbot.python.org/all/#/workers/19 -- nosy: +zach.ware ___ Python tracker

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-01-27 Thread Mark Shannon
Mark Shannon added the comment: Yes, we should expose the tuple of variable names, both in Python and in the C-API. Would something like `PyCodeObject_GetVariableName()` and `PyCodeObject_GetVariableKind()` work? In the meantime, since you were reading `co_varnames` directly, why not read

[issue40077] Convert static types to heap types: use PyType_FromSpec()

2022-01-27 Thread STINNER Victor
STINNER Victor added the comment: > And I found 135 more static types with this command Of these 135 static types, most are cleared since bpo-46417 was implemented: * 103 types are cleared by _PyTypes_FiniTypes() * 15 types are cleared by _PyIO_Fini() * the remaining 17 types are not cleared

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-01-27 Thread Eric Snow
Eric Snow added the comment: In addition to what Mark said, note that co_varnames get's populated lazily by the Python-level getter for code.co_varnames. So could you call the Python function before entering the hot path? Regardless, a dedicated C-API for this like Mark suggested would be t

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29143 pull_request: https://github.com/python/cpython/pull/30964 ___ Python tracker ___ __

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread Mark Dickinson
Mark Dickinson added the comment: Low priority, but it may also be worth updating the implementation of `Vec2D.__abs__`. It currently looks like this: def __abs__(self): return (self[0]**2 + self[1]**2)**0.5 But would be more robust if it used hypot: def __abs__(self):

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-01-27 Thread Eric Snow
Eric Snow added the comment: New changeset 247480a21cb165efdacc346a2d589dfc27e18283 by Eric Snow in branch 'main': bpo-46541: Generate the global objects initializer. (gh-30941) https://github.com/python/cpython/commit/247480a21cb165efdacc346a2d589dfc27e18283 -- ___

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread Mark Dickinson
Mark Dickinson added the comment: Apologies; looks like I'm out of date on this. It's already using hypot, which makes it more than a little worrying that it doesn't get the right answer for `Vec2D(6, 8)`. -- ___ Python tracker

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2022-01-27 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry again, all; I failed to read everything that was going on here. The test *wasn't* failing with the hypot-based version of Vec2D.__abs__ that's in the main branch; only with the "**0.5"-based version that was still in the older branches. Please ignore t

[issue46476] Not all memory allocated by _Py_Quicken() is released at Python exit

2022-01-27 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 6.0 -> 7.0 pull_requests: +29144 pull_request: https://github.com/python/cpython/pull/30965 ___ Python tracker _

[issue46166] Get "self" args or non-null co_varnames from frame object with C-API

2022-01-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +3.11regression nosy: +gregory.p.smith priority: normal -> high ___ Python tracker ___ ___

[issue46476] Not all memory allocated by _Py_Quicken() is released at Python exit

2022-01-27 Thread Mark Shannon
Mark Shannon added the comment: New changeset 26b0482393a313e3bda364a35e7417e9db52c1c4 by Christian Heimes in branch 'main': bpo-46476: Simplify and fix _PyStaticCode_Dealloc (GH-30965) https://github.com/python/cpython/commit/26b0482393a313e3bda364a35e7417e9db52c1c4 -- ___

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2022-01-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +29145 pull_request: https://github.com/python/cpython/pull/30966 ___ Python tracker ___

  1   2   >