[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

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

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

[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

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

[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

[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

[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

[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

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

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

[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

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

[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

[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

[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

[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

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

[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

[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

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

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

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

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

[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 miss-islington
Change by miss-islington : -- pull_requests: +30386 pull_request: https://github.com/python/cpython/pull/32327 ___ Python tracker ___

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

[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

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

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

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

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

[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

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

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

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

[issue45790] Inaccurate phrasing in extending/newtypes_tutorial

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

[issue46998] Allow subclassing Any at runtime

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

[issue46998] Allow subclassing Any at runtime

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 5a4973e29f2f5c4ee8c086f40325786c62381540 by Shantanu in branch 'main': bpo-46998: Allow subclassing Any at runtime (GH-31841) https://github.com/python/cpython/commit/5a4973e29f2f5c4ee8c086f40325786c62381540 --

[issue45542] Using multiple comparison operators can cause performance issues

2022-04-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: I came here from #47221. If I am reading this correctly, it concerns me that stack operations (which should be fast) are apparently slow? If we can't reduce the number of stack operations, can we speed them up? -- nosy: +steven.daprano status:

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

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

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

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset bb86d1d9fbd1888524e04475383f4ea764277f67 by Vanshaj Singhania in branch 'main': bpo-47007: [doc] `str` special method lookup (GH-31863) https://github.com/python/cpython/commit/bb86d1d9fbd1888524e04475383f4ea764277f67 -- nosy:

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

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

[issue41233] Missing links to errnos on Built-in Exceptions page

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

[issue41233] Missing links to errnos on Built-in Exceptions page

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset e47e6ffed36eb1dd82da3bcadf8b45b894ef4ce2 by Miss Islington (bot) in branch '3.9': bpo-41233: Add links to errnos referenced in exceptions docs (GH-21380) https://github.com/python/cpython/commit/e47e6ffed36eb1dd82da3bcadf8b45b894ef4ce2

[issue41233] Missing links to errnos on Built-in Exceptions page

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset 3fa800d7a7a405f51e0e8c9b7dac2f2a75c17bb4 by Miss Islington (bot) in branch '3.10': bpo-41233: Add links to errnos referenced in exceptions docs (GH-21380) https://github.com/python/cpython/commit/3fa800d7a7a405f51e0e8c9b7dac2f2a75c17bb4

[issue41233] Missing links to errnos on Built-in Exceptions page

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

[issue41233] Missing links to errnos on Built-in Exceptions page

2022-04-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +30377 pull_request: https://github.com/python/cpython/pull/32316 ___ Python tracker

[issue41233] Missing links to errnos on Built-in Exceptions page

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset a74892cb2168d249d9a8c53fad605a5def9b41d4 by yyyan in branch 'main': bpo-41233: Add links to errnos referenced in exceptions docs (GH-21380) https://github.com/python/cpython/commit/a74892cb2168d249d9a8c53fad605a5def9b41d4 -- nosy:

[issue47222] subprocess.Popen() should allow capturing output and sending it to stdout and stderr

2022-04-04 Thread Ned Deily
Change by Ned Deily : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46180] Button clicked failed when mouse hover tooltip and tooltip destroyed

2022-04-04 Thread Ned Deily
Ned Deily added the comment: Unfortunately, this is the kind of issue, often the case with tkinter issues, where it is difficult to know where the problem might be. While I know little about the internals of tkinter and Tk, my intuition is that this is most likely a Tk issue and would need

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

2022-04-04 Thread Ned Deily
Ned Deily added the comment: New changeset 5a7506de7374c10e6eb9ae5a232cc88d4d588450 by Oleg Iarygin in branch 'main': Fix "Contributed ... in bpo-bpo-45847" (GH-32299) https://github.com/python/cpython/commit/5a7506de7374c10e6eb9ae5a232cc88d4d588450 -- nosy: +ned.deily

[issue47210] './configure --help' causes infinite loop

2022-04-04 Thread Ned Deily
Ned Deily added the comment: Python 3.9.6 is no longer supported, 3.9.12 is the most recent 3.9.x release. Do you get the same results with 3.9.12? But, for what it's worth, ./configure --help of that 3.9.6 tarball works just fine on other current Linux systems I have available. --

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

2022-04-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: per https://mail.python.org/archives/list/python-...@python.org/message/GFOMU7LP63JUVFMWNJNZJLUMZDRPTUYJ/ lets roll some of those PRs back and reshape where we move these APIs as despite the PEP they were not as private as other privates. (deferred

[issue47097] Document PEP 646

2022-04-04 Thread Alex Waygood
Alex Waygood added the comment: (Feel free to reopen this issue if there's more to be done, Matthew!) -- ___ Python tracker ___

[issue47097] Document PEP 646

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

[issue47097] Document PEP 646

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 38ae5b8c0c0b64ae6100b0dee8707d5ab769e381 by Matthew Rahtz in branch 'main': bpo-47097: Add documentation for TypeVarTuple (#32103) https://github.com/python/cpython/commit/38ae5b8c0c0b64ae6100b0dee8707d5ab769e381 --

[issue47006] PEP 646: Decide on substitution behavior

2022-04-04 Thread Matthew Rahtz
Matthew Rahtz added the comment: Apologies for the slow reply - coming back to this now that the docs and pickling issues are mostly sorted. [Serhiy] > > Alias = C[T, *Ts] > > Alias2 = Alias[*tuple[int, ...]] > > # Alias2 should be C[int, *tuple[int, ...]] > > tuple[int, ...] includes also

[issue45542] Using multiple comparison operators can cause performance issues

2022-04-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: https://bugs.python.org/issue47221 was opened as a duplicate of this. Unless there are any new ideas for getting around the concerns here, I think this can be closed. -- status: open -> pending ___ Python tracker

[issue47221] chained comparisons slower than using `and`

2022-04-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: Feel free to comment on that issue if you have any ideas about how to address the concerns there. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Using multiple comparison operators can cause performance issues

[issue47221] chained comparisons slower than using `and`

2022-04-04 Thread Dennis Sweeney
Change by Dennis Sweeney : -- title: Bug or bad performance -> chained comparisons slower than using `and` ___ Python tracker ___

[issue47221] Bug or bad performance

2022-04-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: I believe this is a duplicate of this issue: https://bugs.python.org/issue45542 -- nosy: +Dennis Sweeney ___ Python tracker ___

[issue47222] subprocess.Popen() should allow capturing output and sending it to stdout and stderr

2022-04-04 Thread Philip Prindeville
New submission from Philip Prindeville : I'd like to see handlers exposes for the stdout and stderr pipe-reading threads so that I could customize what's done with the data as it's read. I might, for instance, want to: (1) accumulate it into a buffer; (2) copy it onto sys.stdout or

[issue47203] ImportError: DLL load failed while importing binascii: %1 is not a valid Win32 application.

2022-04-04 Thread Matthew
Matthew added the comment: Hello, Thanks for all the help people have given me! I've found the solution to my problem. The Environment Variable was set below every other, leading to a different Python interpreter to being used, which was probably bundled with a different software. I moved

[issue47221] Bug or bad performance

2022-04-04 Thread Cezary Wagner
Cezary Wagner added the comment: Some more experiments: import dis import timeit REPEATS = 100 def test1(): selected = [] for i in range(REPEATS): if i >= 25 and i <= 75: selected.append(i) return selected def test2(): selected = [] for i in

[issue47049] Incorrect shutil.copytree() behaviour with symlinks

2022-04-04 Thread Zoltan Vajda
Zoltan Vajda added the comment: Because I am a first contributor, the automatic quality checks on GitHub have to be manually started by somebody. How can I reqest this and by whom? -- type: -> behavior ___ Python tracker

[issue47221] Bug or bad performance

2022-04-04 Thread Cezary Wagner
New submission from Cezary Wagner : I am experienced programmer 10y+ - that is very very strange performance problem when I play Python timeit with my son :) three way operator a <= x <= b is slower than a <= x and x <= b. It looks like wrong implementation since it is impossible that two

[issue38299] build errors - latest "git pull"

2022-04-04 Thread Irit Katriel
Irit Katriel added the comment: Thanks for the report. We run AddressSanitizer on the buildbots now, so I'm going to assume that we know about these issues when they come up. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed

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

2022-04-04 Thread Géry
New submission from Géry : - Document the optional *callback* parameter of `weakref.WeakMethod`. - Fix a few spelling mistakes. - Improve wording. -- components: Library (Lib) messages: 416697 nosy: maggyero priority: normal pull_requests: 30376 severity: normal status: open title:

[issue47190] Integrating tkinter and asyncio event loops

2022-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: That issue has my previous experiments. Thank you Serhiy for finding it ;-). -- resolution: -> duplicate superseder: -> Integrate tkinter and asyncio (and async) ___ Python tracker

[issue21314] Document '/' in signatures

2022-04-04 Thread Petr Viktorin
Petr Viktorin added the comment: - PEP 570 (Python Positional-Only Parameters) is final - The language spec was updated to mention it - the FAQ entry was revised to not link to the PEP and be a self-contained explanation IMO the only thing left is to make searching for `/` yield the right

[issue47219] asyncio with two interpreter instances

2022-04-04 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47219] asyncio with two interpreter instances

2022-04-04 Thread Matthias Badaire
New submission from Matthias Badaire : Hi, I have an issue when using asyncio and two interpreter instances each launched and used in a seperated thread. I am getting a asyncio loop for each thread .However asyncio is getting me the same loop because of this code in get_running_loop. Indeed

[issue47152] Reorganize the re module sources

2022-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Match.regs is an undocumented attribute, it seems it has existed since 1991. Can it be removed? It was kept for compatibility with the pre-SRE implementation of the re module. It was an implementation detail in the original Python code, but I am sure

[issue47182] _PyUnicode_Fini should invalidate ucnhash_capi capsule pointer

2022-04-04 Thread neonene
Change by neonene : -- nosy: +neonene nosy_count: 5.0 -> 6.0 pull_requests: +30375 pull_request: https://github.com/python/cpython/pull/32313 ___ Python tracker ___

[issue47208] Support libffi implementations that cannot support invocations with 1024 arguments

2022-04-04 Thread Hood Chatham
Hood Chatham added the comment: Ideally the library should be able to define a different macro, e.g., CTYPES_CUSTOM_MAX_ARGCOUNT. This way the libffi port can define CTYPES_CUSTOM_MAX_ARGCOUNT and it will be compatible with older Python versions without causing Warning: "CTYPES_MAX_ARGCOUNT

[issue47218] adding name to lzmafile

2022-04-04 Thread Marin M
Change by Marin M : -- keywords: +patch pull_requests: +30374 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32312 ___ Python tracker ___

[issue47218] adding name to lzmafile

2022-04-04 Thread Marin M
New submission from Marin M : LZMAFile doesn't have attribute name, unlike GzipFile which has it. Trying to access that attribute results in error. PR is ready with code changes and tests which mimics what is already available for GzipFile (e.g. we do not take name from BytesIO() objects

[issue47217] adding name to BZ2File

2022-04-04 Thread Marin M
Change by Marin M : -- keywords: +patch pull_requests: +30373 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32311 ___ Python tracker ___

[issue47217] adding name to BZ2File

2022-04-04 Thread Marin M
New submission from Marin M : BZ2File doesn't have attribute name, unlike GzipFile which has it. Trying to access that attribute results in error. PR is ready with code changes and tests which mimics what is already available for GzipFile (e.g. we do not take name from BytesIO() objects

[issue43224] Add support for PEP 646

2022-04-04 Thread Matthew Rahtz
Matthew Rahtz added the comment: > 1. Finish writing docs Done once https://github.com/python/cpython/pull/32103 is merged. > 2. Implement support for pickling of unpacked native tuples Done once https://github.com/python/cpython/pull/32159 is merged. 4. Resolve the issue of how we

[issue42012] typing support in wsgiref

2022-04-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This seems useful to me but I don't have experience with wsgiref. pje is listed as the maintainer in the devguide but appears to be inactive. I'd suggest you open a PR and if anyone feels strongly against it, they can complain. -- nosy:

[issue46484] Add test for Calendar().iterweekdays()

2022-04-04 Thread Irit Katriel
Irit Katriel added the comment: Thank you Jiahua! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46484] Add test for Calendar().iterweekdays()

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset 5b4bc61d897c956c245a907807d0073aaa35f1c3 by Miss Islington (bot) in branch '3.9': bpo-46484:Add test for Calendar.iterweekdays (GH-30825) https://github.com/python/cpython/commit/5b4bc61d897c956c245a907807d0073aaa35f1c3 --

[issue47214] builtin_function_or_method is also either a function or a method

2022-04-04 Thread Ravi Jain
Ravi Jain added the comment: yes, I think `inspect.isroutine` does the required functionality. sorry, I did not know about it, and could not think of the word `routine` when checking for functions. -- ___ Python tracker

[issue47216] adding mtime option to gzip open()

2022-04-04 Thread Marin M
Change by Marin M : -- keywords: +patch pull_requests: +30371 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32310 ___ Python tracker ___

[issue47216] adding mtime option to gzip open()

2022-04-04 Thread Marin M
New submission from Marin M : init of class GzipFile has mtime as an optional argument, but open() function does not. When using open(), mtime will always be set to the current time and so far there was no way of fixing it to a specific timestamp. In case two people would tar.gz the same

[issue46484] Add test for Calendar().iterweekdays()

2022-04-04 Thread miss-islington
miss-islington added the comment: New changeset 6b4b892e0962a7050c5064133c59955691f9776c by Miss Islington (bot) in branch '3.10': bpo-46484:Add test for Calendar.iterweekdays (GH-30825) https://github.com/python/cpython/commit/6b4b892e0962a7050c5064133c59955691f9776c --

[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

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

[issue47214] builtin_function_or_method is also either a function or a method

2022-04-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: Perhaps what you want is inspect.isroutine ? https://docs.python.org/3/library/inspect.html#inspect.isroutine I agree with Dennis that the isfunction test is for **Python** (def or lambda) functions, not builtins. The docstring for the inspect.is* methods

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

2022-04-04 Thread Christian Heimes
Christian Heimes added the comment: New changeset c9844cb8aa9615cdc8770d1e43ce6e2ac3efd836 by Christian Heimes in branch 'main': bpo-40280: Add --enable-wasm-dynamic-linking (GH-32253) https://github.com/python/cpython/commit/c9844cb8aa9615cdc8770d1e43ce6e2ac3efd836 --

[issue47214] builtin_function_or_method is also either a function or a method

2022-04-04 Thread Ravi Jain
Ravi Jain added the comment: but `callable` returns `True` for classes with `__call__` also, it does not check whether the argument passed to it is a function or not. I want some way to return `True` for both builtin functions and Python functions, but not for classes. And similarly, some

[issue46484] Add test for Calendar().iterweekdays()

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

[issue46484] Add test for Calendar().iterweekdays()

2022-04-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +30368 pull_request: https://github.com/python/cpython/pull/32307 ___ Python tracker

[issue46484] Add test for Calendar().iterweekdays()

2022-04-04 Thread Irit Katriel
Irit Katriel added the comment: New changeset 48269ea9fdbc5804f80962364f95e69097c417ba by 180909 in branch 'main': bpo-46484:Add test for Calendar.iterweekdays (GH-30825) https://github.com/python/cpython/commit/48269ea9fdbc5804f80962364f95e69097c417ba -- nosy: +iritkatriel

  1   2   >