[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 090e5c4b946b28f50fce445916c5d3ec45c8f45f by Serhiy Storchaka in branch 'main': bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" (GH-31479) https://github.com/python/cpython/commit/090e5c4b946b28f50fce445916c5d3ec45c8f45f

[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29623 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31493 ___ Python tracker _

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2022-02-21 Thread Safihre
Change by Safihre : -- pull_requests: +29622 pull_request: https://github.com/python/cpython/pull/31492 ___ Python tracker ___ ___ P

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-02-21 Thread Spencer Brown
Spencer Brown added the comment: Had a potential thought. Since the only situation we care about is overload being used on function definitions in lexical order, valid calls are only that on definitions with ascending co_firstlineno counts. Expanding on Jelle's solution, the overload() decor

[issue40255] Fixing Copy on Writes from reference counting and immortal objects

2022-02-21 Thread Eddie Elizondo
Eddie Elizondo added the comment: It seems that we are back on track with perf being back to neutral! I've created 4 new PRs. Each with an optimization applied on top of the baseline introduction of instance immortalization. The main PR 19474 currently stands at around 4%, after rebasing pas

[issue40255] Fixing Copy on Writes from reference counting and immortal objects

2022-02-21 Thread Inada Naoki
Inada Naoki added the comment: All of these optimizations should be disabled by default. * It will cause leak when Python is embedded. * Even for python command, it will break __del__ and weakref callbacks. -- ___ Python tracker

[issue40255] Fixing Copy on Writes from reference counting and immortal objects

2022-02-21 Thread Eddie Elizondo
Change by Eddie Elizondo : -- pull_requests: +29621 pull_request: https://github.com/python/cpython/pull/31491 ___ Python tracker ___ __

[issue40255] Fixing Copy on Writes from reference counting and immortal objects

2022-02-21 Thread Eddie Elizondo
Change by Eddie Elizondo : -- pull_requests: +29620 pull_request: https://github.com/python/cpython/pull/31490 ___ Python tracker ___ __

[issue40255] Fixing Copy on Writes from reference counting and immortal objects

2022-02-21 Thread Eddie Elizondo
Change by Eddie Elizondo : -- pull_requests: +29619 pull_request: https://github.com/python/cpython/pull/31489 ___ Python tracker ___ __

[issue40255] Fixing Copy on Writes from reference counting and immortal objects

2022-02-21 Thread Eddie Elizondo
Change by Eddie Elizondo : -- pull_requests: +29618 pull_request: https://github.com/python/cpython/pull/31488 ___ Python tracker ___ __

[issue46823] Add LOAD_FAST__LOAD_ATTR_INSTACE_VALUE combined opcode

2022-02-21 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +29617 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31484 ___ Python tracker ___ _

[issue46823] Add LOAD_FAST__LOAD_ATTR_INSTACE_VALUE combined opcode

2022-02-21 Thread Dennis Sweeney
New submission from Dennis Sweeney : See https://github.com/faster-cpython/ideas/discussions/291 -- messages: 413692 nosy: Dennis Sweeney priority: normal severity: normal status: open title: Add LOAD_FAST__LOAD_ATTR_INSTACE_VALUE combined opcode ___

[issue46757] dataclasses should define an empty __post_init__

2022-02-21 Thread Neil Girdhar
Neil Girdhar added the comment: @Raymond yeah I've been thinking about this some more, and there's no way to have a "top level" method with the dataclass decorator. I think I will make a case to have a class version of dataclasses that works with inheritance. Class versions of dataclasses a

[issue46757] dataclasses should define an empty __post_init__

2022-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Note that adding an empty __post_init__ method would be a breaking change. The following prints out 'B' then 'C'. But if class A adds an empty __post_init__, then 'B' never gets printed. The arrangement relies on class A being a passthrough to class B.

[issue46794] Please update bundled libexpat to 2.4.6 with security fixes (5 CVEs)

2022-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +29615, 29616 pull_request: https://github.com/python/cpython/pull/31487 ___ Python tracker ___ __

[issue46794] Please update bundled libexpat to 2.4.6 with security fixes (5 CVEs)

2022-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +29615 pull_request: https://github.com/python/cpython/pull/31487 ___ Python tracker ___ _

[issue46794] Please update bundled libexpat to 2.4.6 with security fixes (5 CVEs)

2022-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -29614 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue46794] Please update bundled libexpat to 2.4.6 with security fixes (5 CVEs)

2022-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +29614 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31486 ___ Python tracker ___

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-21 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-21 Thread Inada Naoki
Inada Naoki added the comment: New changeset 74127b89a8224d021fc76f679422b76510844ff9 by Inada Naoki in branch 'main': bpo-46606: Reduce stack usage of getgroups and setgroups (GH-31073) https://github.com/python/cpython/commit/74127b89a8224d021fc76f679422b76510844ff9 -- __

[issue46794] Please update bundled libexpat to 2.4.6 with security fixes (5 CVEs)

2022-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- assignee: -> corona10 nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue46771] Add some form of cancel scopes

2022-02-21 Thread Tin Tvrtković
Change by Tin Tvrtković : -- pull_requests: +29613 pull_request: https://github.com/python/cpython/pull/31483 ___ Python tracker ___

[issue46761] functools.update_wrapper breaks the signature of functools.partial objects

2022-02-21 Thread Ka-Ping Yee
Ka-Ping Yee added the comment: Hmm, interesting. I wasn't involved in writing the `follow_wrapper_chains` feature, so I don't know why it's there. I wonder if some digging through the revision history of `functools.py` and `inspect.py` would yield insight. -- _

[issue46822] test_create_server_ssl_over_ssl attempts to listen on 0.0.0.0

2022-02-21 Thread Steve Dower
New submission from Steve Dower : This causes a failure on one of my test machines where the firewall settings forbid it. However, the test itself seems designed to only listen on localhost. Even tracing all call through socket, I don't see when or where it is attempting to listen on 0.0.0.0

[issue46814] Documentation for constructing abstract base classes is misleading

2022-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I’m only -0 on this. It is also perfectly reasonable to say that a class is abstract if and only if there is at least one remaining abstract method. After 15 years though, I’m inclined to say that the status quo wins. -- _

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-02-21 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I'm OK with not fully supporting overloads created in nested functions; that's a pretty marginal use case. But it's true that my proposed implementation would create a memory leak if someone does do that. I don't immediately see a way to fix that with weakre

[issue46725] Unpacking without parentheses is allowed since 3.9

2022-02-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +29612 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31481 ___ Python tracker __

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-02-21 Thread Spencer Brown
Spencer Brown added the comment: I'm not sure a get_overloads() function potentially called after the fact would fully work - there's the tricky case of nested functions, where the overload list would need to be somehow cleared to ensure every instantiation doesn't endlessly append to the sa

[issue46814] Documentation for constructing abstract base classes is misleading

2022-02-21 Thread Alex Waygood
Change by Alex Waygood : -- title: Documentation for constructin abstract base classes is misleading -> Documentation for constructing abstract base classes is misleading ___ Python tracker _

[issue46814] Documentation for constructin abstract base classes is misleading

2022-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: An analogy may help. Release managers must check the list of release blockers and stop if the list is non-empty. If no release blockers were ever filed, the release blockers list is empty, but it still exists and its definition hasn't changed. The test

[issue46814] Documentation for constructin abstract base classes is misleading

2022-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: To me, this looks like a way too extensive edit jsut to emphasize a corner case that rarely arises in practice. It bends over backwards to force an awkward definition regarding what an ABC really is. A more minimal edit is to just note that inspect.isab

[issue46232] Client certificates with UniqueIdentifier in the subject break ssl.peer_certificate()

2022-02-21 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg413642 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46819] Add an Error / Exception / Warning when contextlib.suppress() is entered with no specified exception(s) to suppress

2022-02-21 Thread Cooper Lees
Cooper Lees added the comment: Totally agree with your example use case. There you have a chance for it being useful under certain conditions. In that example there is a passed argument. In my example there is no passed argument. Thus, I believe that this will generally always be developer

[issue46798] xml.etree.ElementTree: get() doesn't return default value, always ATTLIST value

2022-02-21 Thread Ned Deily
Change by Ned Deily : -- nosy: +eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue46789] Restore caching of externals on Windows buildbots

2022-02-21 Thread Steve Dower
Steve Dower added the comment: > one option would be to enhance PCbuild/get_external.py to add support for a cache directory. It should already have this support - set the EXTERNALS_DIR environment variable before building. I use this in my own builds. Though if there are specific platforms

[issue45390] asyncio.Task doesn't propagate CancelledError() exception correctly.

2022-02-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4140bcb1cd76dec5cf8d398f4d0e86c438c987d0 by Andrew Svetlov in branch 'main': bpo-45390: Propagate CancelledError's message from cancelled task to its awaiter (GH-31383) https://github.com/python/cpython/commit/4140bcb1cd76dec5cf8d398f4d0e86c438

[issue45641] Error In opening a file through tkinter on macOS Monterey

2022-02-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -29607 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue46786] embed, source, track, wbr HTML elements not considered empty

2022-02-21 Thread Ned Deily
Change by Ned Deily : -- nosy: +eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2022-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +29611 pull_request: https://github.com/python/cpython/pull/31475 ___ Python tracker ___ _

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-02-21 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds good to me. (I don’t care what happens at runtime but I want to support the folks who do.)-- --Guido (mobile) -- ___ Python tracker _

[issue41028] Move docs.python.org language and version switcher out of cpython

2022-02-21 Thread Ned Deily
Change by Ned Deily : -- stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-02-21 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I made a similar suggestion in issue46821 (thanks Alex for pointing me to this older issue): Currently, the implementation of @overload (https://github.com/python/cpython/blob/59585d6b2ea50d7bc3a9b336da5bde61367f527c/Lib/typing.py#L2211) simply returns a du

[issue46821] Introspection support for typing.overload

2022-02-21 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks! Closing this as a duplicate. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Improve help() by making typing.overload() information accessible at runtime ___ Python t

[issue46821] Introspection support for typing.overload

2022-02-21 Thread Alex Waygood
Alex Waygood added the comment: Discussion of similar ideas in Issue45100 -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +29608 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31479 ___ Python tracker ___

[issue33601] [doc] Py_UTF8Mode is not documented

2022-02-21 Thread Vidhya
Vidhya added the comment: [Entry level contributor seeking guidance]The rst file is updated in this pull request: https://github.com/python/cpython/pull/31480 Unable to update GitHub PR in the issue. Getting the following error "Edit Error: GitHub PR already added to issue" -- ___

[issue33601] [doc] Py_UTF8Mode is not documented

2022-02-21 Thread Vidhya
Change by Vidhya : -- keywords: +patch pull_requests: +29609 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31480 ___ Python tracker __

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread Ned Deily
Ned Deily added the comment: New changeset d4f5bb912e67299b59b814b89a5afd9a8821a14e by Miss Islington (bot) in branch '3.7': bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31471) https://github.com/python/cpython/commit/d4f5bb912e67299b59b814b89a5afd9a8821a14e -- no

[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch. Thank you for your report Patrick. -- stage: patch review -> ___ Python tracker ___ __

[issue46821] Introspection support for typing.overload

2022-02-21 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : Currently, the implementation of @overload (https://github.com/python/cpython/blob/59585d6b2ea50d7bc3a9b336da5bde61367f527c/Lib/typing.py#L2211) simply returns a dummy function and throws away the decorated function. This makes it virtually impossible for

[issue45641] Error In opening a file through tkinter on macOS Monterey

2022-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +29607 pull_request: https://github.com/python/cpython/pull/31475 ___ Python tracker ___ _

[issue46400] Please update bundled libexpat to 2.4.4 with security fixes (CVE-2021-45960)

2022-02-21 Thread Ned Deily
Ned Deily added the comment: New changeset 5fdacac8cecb123ae12669ceb3504b2f41075c20 by Dong-hee Na in branch '3.7': bpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022) (GH-31298) https://github.com/python/cpython/commit/5fdacac8cecb123ae12669ceb3504b2f41075c20 --

[issue46400] Please update bundled libexpat to 2.4.4 with security fixes (CVE-2021-45960)

2022-02-21 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue46784] Duplicated symbols when linking embedded Python with libexpat

2022-02-21 Thread Ned Deily
Ned Deily added the comment: New changeset 61f3c308e435c5294e674ef59fed1d51f47e0089 by Miss Islington (bot) in branch '3.7': bpo-46784: Add newly exported expat symbols to the namespace. (GH-31397) (GH-31418) https://github.com/python/cpython/commit/61f3c308e435c5294e674ef59fed1d51f47e0089

[issue46819] Add an Error / Exception / Warning when contextlib.suppress() is entered with no specified exception(s) to suppress

2022-02-21 Thread Zachary Ware
Zachary Ware added the comment: I'm -1 on this suggestion; consider the following: ``` exceptions_to_suppress = [] if some_condition: exceptions_to_suppress.append(ValueError) with contextlib.suppress(*exceptions_to_suppress): do_a_thing() ``` This seems a reasonable case to support

[issue46329] Split up the CALL_NO_KW and CALL_KW instructions.

2022-02-21 Thread Mark Shannon
Mark Shannon added the comment: New changeset 59585d6b2ea50d7bc3a9b336da5bde61367f527c by Mark Shannon in branch 'main': bpo-46329: Streamline calling sequence a bit. (GH-31465) https://github.com/python/cpython/commit/59585d6b2ea50d7bc3a9b336da5bde61367f527c -- ___

[issue45618] Documentation builds fail with Sphinx 3.2.1

2022-02-21 Thread Ned Deily
Ned Deily added the comment: New changeset 7a5850987010ca5cb0f1e2844cfe183935916e7e by Ned Deily in branch '3.7': bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-31476) https://github.com/python/cpython/commit/7a5850987010ca5cb0f1e2844cfe183935916e7e --

[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46820] SyntaxError on `1not in...`

2022-02-21 Thread Patrick Reader
New submission from Patrick Reader : The following code gives a SyntaxError in 3.10, but used to work fine before (I have tested it in 2.7, 3.8, 3.9): 1not in [2, 3] It seems to be only the `not in` syntax which is affected; all other keywords still work correctly: 1in [2, 3] 1o

[issue45618] Documentation builds fail with Sphinx 3.2.1

2022-02-21 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29606 pull_request: https://github.com/python/cpython/pull/31476 ___ Python tracker ___ ___

[issue46819] Add an Error / Exception / Warning when contextlib.suppress() is entered with no specified exception(s) to suppress

2022-02-21 Thread Cooper Lees
New submission from Cooper Lees : Today if you enter a `contextlib.suppress()` context and specify no exceptions there is no error or warning (I didn't check pywarnings to be fair). Isn't this a useless context then? If not, please explain why and close. If it is, I'd love to discuss possibly

[issue46818] Proper way to inherit from collections.abc.Coroutine

2022-02-21 Thread Kristiyan Kanchev
Kristiyan Kanchev added the comment: Hello Andrew, I'm sorry for using the bug tracker, but I wasn't sure whether posting on StackOverflow (is this the appropriate Q&A site?) will attract the attention of the right people. Although I see you marked this as Closed, I'll be very pleased if y

[issue45641] Error In opening a file through tkinter on macOS Monterey

2022-02-21 Thread Ned Deily
Change by Ned Deily : -- pull_requests: -29603 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue46732] Builtin __bool__ docstrings are wrong

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

[issue46732] Builtin __bool__ docstrings are wrong

2022-02-21 Thread miss-islington
miss-islington added the comment: New changeset 8eb18d842c37c37c1f9316c7e171aad36e875b9a by Miss Islington (bot) in branch '3.9': [3.9] bpo-46732: fix __bool__ docstring (GH-31301) (GH-31474) https://github.com/python/cpython/commit/8eb18d842c37c37c1f9316c7e171aad36e875b9a -- _

[issue46732] Builtin __bool__ docstrings are wrong

2022-02-21 Thread miss-islington
miss-islington added the comment: New changeset c596ecbf821843de0e044f0d4da34c6b49a06907 by Miss Islington (bot) in branch '3.10': [3.10] bpo-46732: fix __bool__ docstring (GH-31301) (GH-31473) https://github.com/python/cpython/commit/c596ecbf821843de0e044f0d4da34c6b49a06907 -- ___

[issue46804] spam

2022-02-21 Thread Mark Dickinson
Change by Mark Dickinson : -- title: Yaytext.net - Tạo văn bản chữ kiểu, kí tự đặc biệt độc đáo -> spam ___ Python tracker ___ ___ Py

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 336a916f75642dfe2d87e237981686051d5d51f8 by Miss Islington (bot) in branch '3.9': bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31469) https://github.com/python/cpython/commit/336a916f75642dfe2d87e237981686051d5d51f8 --

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7da97f61816f3cadaa6788804b22a2434b40e8c5 by Miss Islington (bot) in branch '3.10': bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31472) https://github.com/python/cpython/commit/7da97f61816f3cadaa6788804b22a2434b40e8c5 --

[issue46818] Proper way to inherit from collections.abc.Coroutine

2022-02-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: You don't need send()/throw()/close() methods. aiohttp had them to work with Python 3.5 P.S. Please don't use the bug tracker as Q&A site. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue46732] Builtin __bool__ docstrings are wrong

2022-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +29605 pull_request: https://github.com/python/cpython/pull/31474 ___ Python tracker ___ __

[issue46732] Builtin __bool__ docstrings are wrong

2022-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +29604 pull_request: https://github.com/python/cpython/pull/31473 ___ Python tracker _

[issue45641] Error In opening a file through tkinter on macOS Monterey

2022-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 7.0 -> 8.0 pull_requests: +29603 pull_request: https://github.com/python/cpython/pull/31475 ___ Python tracker ___ __

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +29602 pull_request: https://github.com/python/cpython/pull/31472 ___ Python tracker ___ __

[issue46400] Please update bundled libexpat to 2.4.4 with security fixes (CVE-2021-45960)

2022-02-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c60414de7cefd092643ba200c2c045da1569c391 by Dong-hee Na in branch '3.8': bpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022) (GH-31297) https://github.com/python/cpython/commit/c60414de7cefd092643ba200c2c045da1569c391 -- nosy: +luka

[issue46789] Restore caching of externals on Windows buildbots

2022-02-21 Thread Jeremy Kloth
Jeremy Kloth added the comment: > Would it be possible to create a download cache somewhere outside the Python > source tree, so "git clean -fdx" would not remove this cache? I was thinking of locating it next to the checkout directory. The current structure is: [worker root] -- [builder ro

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +29601 pull_request: https://github.com/python/cpython/pull/31471 ___ Python tracker ___ __

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +29600 pull_request: https://github.com/python/cpython/pull/31470 ___ Python tracker ___ __

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +29599 pull_request: https://github.com/python/cpython/pull/31469 ___ Python tracker _

[issue46811] Test suite needs adjustments for Expat >=2.4.5

2022-02-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2cae93832f46b245847bdc252456ddf7742ef45e by Sebastian Pipping in branch 'main': bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) https://github.com/python/cpython/commit/2cae93832f46b245847bdc252456ddf7742ef45e -- nosy: +lukasz

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

2022-02-21 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 2b86616456629e11de33629da1bb732f033c436e by Dong-hee Na in branch 'main': bpo-46541: Remove usage of _Py_IDENTIFIER from pyexpat (GH-31468) https://github.com/python/cpython/commit/2b86616456629e11de33629da1bb732f033c436e --

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

2022-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +29598 pull_request: https://github.com/python/cpython/pull/31468 ___ Python tracker ___ _

[issue46799] ShareableList memory bloat and performance improvement

2022-02-21 Thread Ting-Che Lin
Change by Ting-Che Lin : -- keywords: +patch pull_requests: +29597 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31467 ___ Python tracker ___ ___

[issue46818] Proper way to inherit from collections.abc.Coroutine

2022-02-21 Thread Kristiyan
New submission from Kristiyan : Hello, Last several days I'm trying to implement an async "opener" object that can be used as Coroutine as well as an AsyncContextManager (eg. work with `await obj.open()` and `async with obj.open()`). I've researched several implementations from various pytho

[issue46817] Add a line-start table to the code object.

2022-02-21 Thread Mark Shannon
New submission from Mark Shannon : Computing whether an instruction is the first on a line (for tracing) in the interpreter is complicated and slow. Doing it in the compiler should be simpler and has no runtime cost. Currently we decide if the current instruction is the first on a line, by us

[issue46789] Restore caching of externals on Windows buildbots

2022-02-21 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to create a download cache somewhere outside the Python source tree, so "git clean -fdx" would not remove this cache? Some CIs implement such cache. Does buildbot have helpers for that? buildbot provides for example: * LRUCache: https:/

[issue42752] multiprocessing Queue leaks a file descriptor associated with the pipe writer (#33081 still a problem)

2022-02-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue46716] regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x

2022-02-21 Thread STINNER Victor
STINNER Victor added the comment: > It does seem that only the Windows Popen._wait() cannot handle negative > timeout values, so the fix should be as simple as coercing the timeout values > to >= 0. Oh. This function should maybe raise an exception if the timeout is negative, and ther calle

[issue43974] Define Py_BUILD_CORE_MODULE in extensions instead of setup.py and Modules/Setup

2022-02-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34990] year 2038 problem in compileall.py

2022-02-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33601] [doc] Py_UTF8Mode is not documented

2022-02-21 Thread STINNER Victor
STINNER Victor added the comment: > [Entry level contributor seeking guidance]The PR on this issue looks closed. > I worked on this and attaching the updated html file. Hi. You should update Doc/c-api/init.rst. Not the generated HTML page. -- ___

[issue46733] pathlib.Path methods can raise NotImplementedError

2022-02-21 Thread Eryk Sun
Eryk Sun added the comment: > pathlib does not allow to distinguish "path" from "path/". os.path.normpath() and os.path.abspath() don't retain a trailing slash -- or a leading dot component for that matter. Are you referring to os.path.join()? For example: >>> os.path.join('./spam', 'eg

[issue46796] Simplify handling of removed parameter "loop" in asyncio

2022-02-21 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue46796] Simplify handling of removed parameter "loop" in asyncio

2022-02-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 195a46d6ffd4cec6c5fb69c5890f8b1758ac91ca by Serhiy Storchaka in branch 'main': bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431) https://github.com/python/cpython/commit/195a46d6ffd4cec6c5fb69c5890f8b1758ac91ca ---

[issue46816] Remove declarations for non-__STDC__ compilers

2022-02-21 Thread Oleg Iarygin
Change by Oleg Iarygin : -- keywords: +patch pull_requests: +29596 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31466 ___ Python tracker ___ ___

[issue46816] Remove declarations for non-__STDC__ compilers

2022-02-21 Thread Oleg Iarygin
New submission from Oleg Iarygin : Currently, Python code contains two places where presence of __STDC__ is checked: - Include/internal/pycore_pymath.h:12 - Python/errors.c:13 These checks are used to add extern functions missing in non-standard versions of math.h. However, after Python swi

[issue46329] Split up the CALL_NO_KW and CALL_KW instructions.

2022-02-21 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +29595 pull_request: https://github.com/python/cpython/pull/31465 ___ Python tracker ___

[issue46733] pathlib.Path methods can raise NotImplementedError

2022-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > In the long run, it would be better to migrate the implementations in the > other direction. Rewrite genericpath, ntpath, posixpath, and parts of shutil > to use PurePath and Path objects. pathlib does not allow to distinguish "path" from "path/". -

[issue46815] Extra `DeprecationWarning` when running `lib2to3` tests

2022-02-21 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +29594 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31464 ___ Python tracker ___ _

[issue46815] Extra `DeprecationWarning` when running `lib2to3` tests

2022-02-21 Thread Nikita Sobolev
New submission from Nikita Sobolev : I first noticed it in the buildbot logs: ``` 0:24:42 load avg: 3.87 [430/431/1] test_lib2to3 passed (1 min 38 sec) :2: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ ``` But, it also happens locally: ``` » ./pyt

  1   2   >