[issue45790] Inaccurate phrasing in extending/newtypes_tutorial

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset b275267aa7d44ec90fa435c9cb1610c549da745a by rtobar in branch 'main': bpo-45790: List macros in same order in which fields are described (GH-29529) https://github.com/python/cpython/commit/b275267aa7d44ec90fa435c9cb1610c549da745a -- nos

[issue47007] [doc] str docs are inconsistent with special method lookup

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

[issue45790] Inaccurate phrasing in extending/newtypes_tutorial

2022-04-04 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- pull_requests: +30382 pull_request: https://github.com/python/cpython/pull/32321 ___ Python tracker ___ __

[issue45790] Inaccurate phrasing in extending/newtypes_tutorial

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks for noticing and fixing! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue32658] Metacharacter (\) documentation suggestion

2022-04-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +30383 pull_request: https://github.com/python/cpython/pull/32322 ___ Python tracker _

[issue32658] Metacharacter (\) documentation suggestion

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 43571a3eea8b5931769376daf4bdad1c9184ae0d by Mike cm in branch 'main': bpo-32658: Regex docs: Fix metacharacter reference (GH-32230) https://github.com/python/cpython/commit/43571a3eea8b5931769376daf4bdad1c9184ae0d -- nosy: +JelleZijlst

[issue32658] Metacharacter (\) documentation suggestion

2022-04-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +30384 pull_request: https://github.com/python/cpython/pull/32323 ___ Python tracker ___ __

[issue32658] Metacharacter (\) documentation suggestion

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks for the patch! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue43224] Add support for PEP 646

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 772d8080c9fd635c3999673ca9fad8b674385c7f by Matthew Rahtz in branch 'main': bpo-43224: typing: Add tests for pickling and copying of unpacked native tuple (GH-32159) https://github.com/python/cpython/commit/772d8080c9fd635c3999673ca9fad8b674385

[issue47007] [doc] str docs are inconsistent with special method lookup

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset f502dadb332f911fa3b6c531bbc5065795cca242 by Miss Islington (bot) in branch '3.10': bpo-47007: [doc] `str` special method lookup (GH-31863) https://github.com/python/cpython/commit/f502dadb332f911fa3b6c531bbc5065795cca242 -- __

[issue40982] copytree example in shutil

2022-04-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +30385 pull_request: https://github.com/python/cpython/pull/32326 ___ Python tracker _

[issue45790] Inaccurate phrasing in extending/newtypes_tutorial

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset f4e711bb49881deb1f07a685878646cd5cdee50f by Miss Islington (bot) in branch '3.10': bpo-45790: List macros in same order in which fields are described (GH-29529) https://github.com/python/cpython/commit/f4e711bb49881deb1f07a685878646cd5cdee50f

[issue40982] copytree example in shutil

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset e06f920c5bc6e9fad29082ba0d84043722806e17 by Zackery Spytz in branch 'main': bpo-40982: shutil docs: Remove outdated copytree() example (GH-24778) https://github.com/python/cpython/commit/e06f920c5bc6e9fad29082ba0d84043722806e17 -- nosy

[issue40982] copytree example in shutil

2022-04-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +30386 pull_request: https://github.com/python/cpython/pull/32327 ___ Python tracker ___ __

[issue47007] [doc] str docs are inconsistent with special method lookup

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset c0063bdc7b5fed98c6799f3da0a954a775e3d89e by Miss Islington (bot) in branch '3.9': bpo-47007: [doc] `str` special method lookup (GH-31863) https://github.com/python/cpython/commit/c0063bdc7b5fed98c6799f3da0a954a775e3d89e -- ___

[issue40982] copytree example in shutil

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

[issue32658] Metacharacter (\) documentation suggestion

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset d95e072c419e40b0fb67b8cc8a84087c8a0276ee by Miss Islington (bot) in branch '3.10': bpo-32658: Regex docs: Fix metacharacter reference (GH-32230) https://github.com/python/cpython/commit/d95e072c419e40b0fb67b8cc8a84087c8a0276ee --

[issue32658] Metacharacter (\) documentation suggestion

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset 31c9e35e5360ba91fc6b81b23eb21dd3c39e2257 by Miss Islington (bot) in branch '3.9': bpo-32658: Regex docs: Fix metacharacter reference (GH-32230) https://github.com/python/cpython/commit/31c9e35e5360ba91fc6b81b23eb21dd3c39e2257 -- _

[issue45542] Using multiple comparison operators can cause performance issues

2022-04-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: For reference, chaining is about 1.18x slower in this microbenchmark on GCC: ./python -m pyperf timeit -s "x = 100" "if 10 < x < 30: print('no')" --duplicate=10 . Mean +- std dev: 21.3 ns +- 0.2 ns ./python -m pyperf timeit -s "x = 100" "i

[issue40982] copytree example in shutil

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset 857cf55cbdd65b7a9534dc35d89a19dfe8cbdba5 by Miss Islington (bot) in branch '3.10': bpo-40982: shutil docs: Remove outdated copytree() example (GH-24778) https://github.com/python/cpython/commit/857cf55cbdd65b7a9534dc35d89a19dfe8cbdba5

[issue40982] copytree example in shutil

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset bc9ec24290d0fa823fa2ac19ac9767b2b8498faa by Miss Islington (bot) in branch '3.9': bpo-40982: shutil docs: Remove outdated copytree() example (GH-24778) https://github.com/python/cpython/commit/bc9ec24290d0fa823fa2ac19ac9767b2b8498faa -

[issue47223] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-04 Thread Takuo Matsuoka
New submission from Takuo Matsuoka : Context --- Some classes have the variable __name__ in their namespace __dict__ , and one may wish to create more such classes with varied values of __name__ . Some of those could be created with a metaclass whose __prepare__ returns a mapping having key

[issue47223] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-04 Thread Takuo Matsuoka
Takuo Matsuoka added the comment: I'm going to close this one since I failed to specify the issue clearly enough. See https://bugs.python.org/issue47223 for a more specific issue. -- resolution: -> duplicate stage: -> resolved status: open -> closed __

[issue47223] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-04 Thread Takuo Matsuoka
Takuo Matsuoka added the comment: I tried to close https://bugs.python.org/issue47136 and mistakingly closed this one. This one is open. Sorry about the mistake. -- resolution: duplicate -> status: closed -> open ___ Python tracker

[issue47224] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-04 Thread Takuo Matsuoka
New submission from Takuo Matsuoka : Context --- Some classes have the variable __name__ in their namespace __dict__ , and one may wish to create more such classes with varied values of __name__ . Some of those could be created with a metaclass whose __prepare__ returns a mapping having key

[issue47223] (closed mistakingly, see the next issue) The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-04 Thread Takuo Matsuoka
Takuo Matsuoka added the comment: It can't be moved backed to unresolved this way. I close this one now. -- resolution: -> duplicate status: open -> closed title: The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass -> (closed mist

[issue47136] Wrong value assigned automatically to the variable __module__ in the class body.

2022-04-04 Thread Takuo Matsuoka
Takuo Matsuoka added the comment: I'm going to close this one since I failed to specify the issue clearly enough. See https://bugs.python.org/issue47224 for a more specific issue. -- resolution: -> duplicate stage: -> resolved status: open -> closed __

[issue47224] The variable __module__ in the class body getting an undesirable value from __prepare__ of the metaclass

2022-04-04 Thread Ethan Furman
Ethan Furman added the comment: Stop creating new issues for the same problem. If you didn't specify the first issue well enough, add your specifics to it and continue that conversation. Splitting the thoughts and feedback across multiple issues is not efficient. Closing this issue, reopen

[issue47136] Wrong value assigned automatically to the variable __module__ in the class body.

2022-04-04 Thread Ethan Furman
Ethan Furman added the comment: issue47223 and issue47224 closed, reopening this one. -- nosy: +ethan.furman resolution: duplicate -> stage: resolved -> status: closed -> open ___ Python tracker __

[issue47136] Wrong value assigned automatically to the variable __module__ in the class body.

2022-04-04 Thread Ethan Furman
Ethan Furman added the comment: Takuo, please give us an example from real code so we can see the problem. -- ___ Python tracker ___ __

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2022-04-04 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +30387 pull_request: https://github.com/python/cpython/pull/32328 ___ Python tracker ___ ___

[issue47152] Reorganize the re module sources

2022-04-04 Thread Ma Lin
Ma Lin added the comment: > cryptic name In very early versions, "mark" was called register/region. https://github.com/python/cpython/blob/v1.0.1/Modules/regexpr.h#L48-L52 If span is accessed repeatedly, it's faster than Match.span(). Maybe consider renaming it, and make it as public attribut

[issue47225] Issue in subtraction of float numbers

2022-04-04 Thread Prem B. Shah
New submission from Prem B. Shah : There is an issue when subtracting float numbers ... for e.g. print (5.67 - 5.6) gives an output : 0.07028 -- components: Windows messages: 416748 nosy: MrPhenomenal3110, paul.moore, steve.dower, tim.golden, zach.ware priority: normal sever

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-04-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: > any objections before I propose the removal of one-argument super? AFAICT there is nothing to be gained by deprecating the one argument form. Because it has been stable API for two decades, removing it is guaranteed to cause some disruption. So why bot

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2022-04-04 Thread Ned Deily
Ned Deily added the comment: New changeset a0c700480b52dffab830d52e9c4eba15d4b57a89 by Ned Deily in branch 'main': bpo-45847: Adapt macOS installer build to use new tkinter configure vars (GH-32328) https://github.com/python/cpython/commit/a0c700480b52dffab830d52e9c4eba15d4b57a89 -

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2022-04-04 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: -Anthony Sottile ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue47225] Issue in subtraction of float numbers

2022-04-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: See https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +rhettinger resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue45790] Inaccurate phrasing in extending/newtypes_tutorial

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset d1fb16ae286795abe3e9da86332c891b4b18826f by Jelle Zijlstra in branch '3.9': [3.9] bpo-45790: List macros in same order in which fields are described (GH-29529) (GH-32321) https://github.com/python/cpython/commit/d1fb16ae286795abe3e9da86332c891b

[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error

2022-04-04 Thread Kaushal Sai v
Change by Kaushal Sai v : -- nosy: vkaushalsai priority: normal severity: normal status: open title: if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error versions: Python 3.11 ___ Python tracker

[issue47220] Document the optional callback parameter of weakref.WeakMethod

2022-04-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Antoine, was the *callback* argument intended to be part of the public API? -- nosy: +pitrou, rhettinger ___ Python tracker ___ _

[issue47226] if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error

2022-04-04 Thread Dennis Sweeney
New submission from Dennis Sweeney : What error message? -- nosy: +Dennis Sweeney ___ Python tracker ___ ___ Python-bugs-list mailin

[issue46890] getpath problems with framework build

2022-04-04 Thread Ned Deily
Ned Deily added the comment: New changeset 6aaf4cd866f7c8f065d30d2a3fb4fffa8461d1d8 by Ronald Oussoren in branch 'main': bpo-46890: Fix setting of sys._base_executable with framework builds on macOS (GH-31958) https://github.com/python/cpython/commit/6aaf4cd866f7c8f065d30d2a3fb4fffa8461d1d8

[issue47165] [C API] Test that the Python C API is compatible with C++

2022-04-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: If we can conditionally test new things based on C++XX version, accumulating modern issue regression tests seems useful. Otherwise 11 at minimum. As for why some things trigger this and others don't, my wild _guess_ would be whether the statements appear w

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue47164] [C API] Add private "CAST" macros to clean up casts in C code

2022-04-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

<    1   2