[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-02-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: I don't really understand all the hate around the idea of a cancel message. One reason it's useful is that it provides a simple way to say *why* something is being cancelled or *what* is cancelling it. It provides additional context to the exception, in the

[issue46757] dataclasses should define an empty __post_init__

2022-02-22 Thread Neil Girdhar
Neil Girdhar added the comment: @eric Good thinking. Would it make sense to add to the documentation as well that the __post_init__ methods aren't collected, and you should call super's __post_init__ if there is one using something like if hasattr(super(), "__post_init__"):

[issue46832] unicodeobject.c doesn't compile when defined EXPERIMENTAL_ISOLATED_SUBINTERPRETERS, variable "interned" not found

2022-02-22 Thread Artyom Polkovnikov
New submission from Artyom Polkovnikov : 1) Downloaded https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tar.xz 2) Compiled under MSVC 2019 with define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS 3) Got compilation error of file Objects/unicodeobject.c at line 15931, about undefined variable "

[issue45459] Limited API support for Py_buffer

2022-02-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: clang doesn't like the typedef forward-decl: In file included from ../cpython/Modules/_ctypes/_ctypes.c:108: In file included from ../cpython/Include/Python.h:43: ../cpython/Include/object.h:109:3: warning: redefinition of typedef 'PyObject' is a C11 featu

[issue46806] Overlapping PYTHONPATH may cause import already imported module

2022-02-22 Thread aklajnert
aklajnert added the comment: I agree that adding a package directory to PYTHONPATH is not a good idea, however, I've stumbled on it in two completely independent companies' codebases. So it makes me suspect that this is may not be that rare case. In the previous company we got bitten by this

[issue46757] dataclasses should define an empty __post_init__

2022-02-22 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 288af845a32fd2a92e3b49738faf8f2de6a7bf7c by Eric V. Smith in branch 'main': bpo-46757: Add a test to verify dataclass's __post_init__ isn't being automatically added. (GH-31523) https://github.com/python/cpython/commit/288af845a32fd2a92e3b49738f

[issue46757] dataclasses should define an empty __post_init__

2022-02-22 Thread Eric V. Smith
Eric V. Smith added the comment: I'm adding a test that mimic's Raymond's example of the proposed addition being a breaking change. This way, if we ever decide to actually add this feature, we'll break this test. If we do decide to continue and make the change anyway, at least we'll do so wi

[issue46757] dataclasses should define an empty __post_init__

2022-02-22 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: +29650 pull_request: https://github.com/python/cpython/pull/31523 ___ Python tracker ___ ___

[issue36595] IDLE: Add search to textview.ViewWindow

2022-02-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: #46830 is a duplicate request. -- versions: +Python 3.11 -Python 3.8, Python 3.9 ___ Python tracker ___ _

[issue46830] Add Find functionality to Squeezed Text viewer

2022-02-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE: Add search to textview.ViewWindow ___ Python tracker __

[issue46831] Outdated comment for __build_class__ in compile.c

2022-02-22 Thread Shantanu
Change by Shantanu : -- keywords: +patch pull_requests: +29649 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31522 ___ Python tracker ___ ___

[issue46831] Outdated comment for __build_class__ in compile.c

2022-02-22 Thread Shantanu
New submission from Shantanu : https://github.com/python/cpython/blob/cf345e945f48f54785799390c2e92c5310847bd4/Python/compile.c#L2537 ``` /* ultimately generate code for: = __build_class__(, , *, **) where: is a function/closure created from the class body;

[issue46622] Add an async variant of lru_cache for coroutines.

2022-02-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Add a async variant of lru_cache for coroutines. -> Add an async variant of lru_cache for coroutines. ___ Python tracker ___ __

[issue46771] Add some form of cancel scopes

2022-02-22 Thread Guido van Rossum
Guido van Rossum added the comment: > If some code is used together with timeout() and this code calls > `.cancel()` but forgot about `.uncancel()` in try/except/finally -- > timeout() never raises TimeoutError. Could you show an example? I'm not sure from this description who cancels whom an

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

2022-02-22 Thread miss-islington
miss-islington added the comment: New changeset 87cebb1e69758aa8b79f8e15187b976d62cba36a by Miss Islington (bot) in branch '3.9': bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) https://github.com/python/cpython/commit/87cebb1e69758aa8b79f8e15187b976d62cba36a -- _

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

2022-02-22 Thread miss-islington
miss-islington added the comment: New changeset 4955a9ed14c681ed835bc8902a9db0bcc728bdee by Miss Islington (bot) in branch '3.10': bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) https://github.com/python/cpython/commit/4955a9ed14c681ed835bc8902a9db0bcc728bdee --

[issue46622] Add a async variant of lru_cache for coroutines.

2022-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: If this goes forward, my strong preference is to have a separate async_lru() function just like the referenced external project. For non-async uses, overloading the current lru_cache makes it confusing to reason about. It becomes harder to describe clear

[issue46765] Replace Locally Cached Strings with Statically Initialized Objects

2022-02-22 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue46828] math.prod can return integers (contradicts doc)

2022-02-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll add a note that the output type is determined by the input type. -- assignee: docs@python -> rhettinger nosy: +rhettinger priority: normal -> low ___ Python tracker

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

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

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

2022-02-22 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 1935e1cc284942bec8006287c939e295e1a7bf13 by Dong-hee Na in branch 'main': bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) https://github.com/python/cpython/commit/1935e1cc284942bec8006287c939e295e1a7bf13 --

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

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

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

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

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

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

[issue44337] Port LOAD_ATTR to adaptive interpreter

2022-02-22 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher nosy_count: 3.0 -> 4.0 pull_requests: +29644 pull_request: https://github.com/python/cpython/pull/31517 ___ Python tracker ___

[issue46830] Add Find functionality to Squeezed Text viewer

2022-02-22 Thread Jeff Cagle
New submission from Jeff Cagle : Squeezed text output currently opens in a viewer whose only functionality is scrolling. Adding the Find widget a la IDLE would make the viewer much more useful. -- assignee: terry.reedy components: IDLE messages: 413761 nosy: Jeff.Cagle, terry.reedy p

[issue46771] Add some form of cancel scopes

2022-02-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: If some code is used together with timeout() and this code calls `.cancel()` but forgot about `.uncancel()` in try/except/finally -- timeout() never raises TimeoutError. Should we care? The missing `.uncancel()` call is hard to detect by the runtime and sta

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-02-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-02-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: -Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue46522] concurrent.futures.__getattr__ raises the wrong AttributeError message

2022-02-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9b12b1b803d7b73640ab637a74a6f35f3fe9db21 by Thomas Grainger in branch 'main': bpo-46522: fix concurrent.futures and io AttributeError messages (GH-30887) https://github.com/python/cpython/commit/9b12b1b803d7b73640ab637a74a6f35f3fe9db21 ---

[issue46765] Replace Locally Cached Strings with Statically Initialized Objects

2022-02-22 Thread Eric Snow
Eric Snow added the comment: New changeset 1f455361ecfb1892e375bdbee813cdf095b6cfb8 by Eric Snow in branch 'main': bpo-46765: Replace Locally Cached Strings with Statically Initialized Objects (gh-31366) https://github.com/python/cpython/commit/1f455361ecfb1892e375bdbee813cdf095b6cfb8

[issue45885] Specialize COMPARE_OP

2022-02-22 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher nosy_count: 2.0 -> 3.0 pull_requests: +29643 pull_request: https://github.com/python/cpython/pull/31516 ___ Python tracker ___

[issue40358] pathlib's relative_to should behave like os.path.relpath

2022-02-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue44078] Output relative path when using PurePath.relative_to

2022-02-22 Thread Socob
Change by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue42234] pathlib relative_to behaviour change

2022-02-22 Thread Socob
Change by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue40358] pathlib's relative_to should behave like os.path.relpath

2022-02-22 Thread Socob
Change by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue44886] asyncio: create_datagram_endpoint() does not return a DatagramTransport

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

[issue44886] asyncio: create_datagram_endpoint() does not return a DatagramTransport

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

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-02-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Deprecation is a good answer. Let's not forget to apply it to 3.11 then. -- ___ Python tracker ___ _

[issue46771] Add some form of cancel scopes

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

[issue43119] asyncio.Queue.put never yields if the queue is unbounded

2022-02-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, that's how asyncio works: it never switches to another task if `await ...` doesn't need to wait for something actually. Adding `await asyncio.sleep(0)` to every call decreases performance. -- resolution: -> wont fix stage: patch review -> res

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-02-22 Thread Guido van Rossum
Guido van Rossum added the comment: I would like to go on record (again) as preferring to get rid of the cancel-message parameter altogether. Let's deprecate it. When we initially designed things without a cancel message we did it on purpose -- "cancellation" is a single flag, not a collecti

[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-02-22 Thread Vidhya
Vidhya added the comment: [Entry level contributor seeking guidance]If this is not yet fixed, I can work on this. Please let me know. -- nosy: +vidhya ___ Python tracker ___

[issue45883] reuse_address mistakenly removed from loop.create_server

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

[issue44886] asyncio: create_datagram_endpoint() does not return a DatagramTransport

2022-02-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue44886] asyncio: create_datagram_endpoint() does not return a DatagramTransport

2022-02-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.10, Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue44886] asyncio: create_datagram_endpoint() does not return a DatagramTransport

2022-02-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +29639 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31512 ___ Python tracker ___ _

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about `CancelledError(*msg_list)` or `CancelledError(*reversed(msg_list))`? It is backward compatible and all messages are uniformely represented. -- nosy: +serhiy.storchaka ___ Python tracker

[issue45459] Limited API support for Py_buffer

2022-02-22 Thread STINNER Victor
STINNER Victor added the comment: pmp-p: > There's some side effects with "buffer.h" inclusion in Panda3D when building > againt 3.11a5, project manager concerns are here > https://github.com/python/cpython/pull/29991#issuecomment-1031731100 Thanks for the report. It has been fixed. I close

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

2022-02-22 Thread Alex Waygood
Alex Waygood added the comment: I'd dearly like better introspection tools for functions decorated with @overload, but I'd rather have a solution where: - inspect.signature doesn't have to import typing. That doesn't feel worth it for users who aren't using typing.overload, but inspect.signa

[issue45459] Limited API support for Py_buffer

2022-02-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 66b3cd7063322a9f5c922a97bbd06fdb9830 by Victor Stinner in branch 'main': bpo-45459: Rename buffer.h to pybuffer.h (#31201) https://github.com/python/cpython/commit/66b3cd7063322a9f5c922a97bbd06fdb9830 -- __

[issue46329] Split up the CALL_NO_KW and CALL_KW instructions.

2022-02-22 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +29638 pull_request: https://github.com/python/cpython/pull/31511 ___ Python tracker ___ ___

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-02-22 Thread Andrew Svetlov
New submission from Andrew Svetlov : Suppose multiple `task.cancel(msg)` with different messages are called on the same event loop iteration. What message (`cancel_exc.args[0]`) should be sent on the next loop iteration? As of Python 3.10 it is the message from the *last* `task.cancel(msg)` c

[issue45146] Add a possibility for asyncio.Condition to determine the count of currently waiting consumers

2022-02-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, your use-case looks not convincing but overcomplicated. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue44011] Borrow asyncio ssl implementation from uvloop

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

[issue46827] asyncio SelectorEventLoop.sock_connect fails with a UDP socket

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

[issue46827] asyncio SelectorEventLoop.sock_connect fails with a UDP socket

2022-02-22 Thread miss-islington
miss-islington added the comment: New changeset 29e8c43b32d6f1ec2e8b4fd8c4903d30830f280f by Miss Islington (bot) in branch '3.9': bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499) https://github.com/python/cpython/commit/29e8c43b32d6f1ec2e8b4fd8c4903d30830f280f --

[issue46827] asyncio SelectorEventLoop.sock_connect fails with a UDP socket

2022-02-22 Thread miss-islington
miss-islington added the comment: New changeset d327517b54c148eba499c777b99760356102cbe0 by Miss Islington (bot) in branch '3.10': bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499) https://github.com/python/cpython/commit/d327517b54c148eba499c777b99760356102cbe0 --

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset b899126094731bc49fecb61f2c1b7557d74ca839 by Victor Stinner in branch 'main': bpo-46659: Deprecate locale.getdefaultlocale() (GH-31206) https://github.com/python/cpython/commit/b899126094731bc49fecb61f2c1b7557d74ca839 -- __

[issue46659] Deprecate locale.getdefaultlocale() function

2022-02-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset ccbe8045faf6e63d36229ea4e1b9298572cda126 by Victor Stinner in branch 'main': bpo-46659: Fix the MBCS codec alias on Windows (GH-31218) https://github.com/python/cpython/commit/ccbe8045faf6e63d36229ea4e1b9298572cda126 -- __

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

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

[issue46827] asyncio SelectorEventLoop.sock_connect fails with a UDP socket

2022-02-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 8fb94893e4a870ed3533e80c4bc2f1ebf1cfa9e7 by Thomas Grainger in branch 'main': bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499) https://github.com/python/cpython/commit/8fb94893e4a870ed3533e80c4bc2f1ebf1cfa9e7 -- ___

[issue46827] asyncio SelectorEventLoop.sock_connect fails with a UDP socket

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

[issue46827] asyncio SelectorEventLoop.sock_connect fails with a UDP socket

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

[issue46771] Add some form of cancel scopes

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

[issue46828] math.prod can return integers (contradicts doc)

2022-02-22 Thread Neil Webber
New submission from Neil Webber : The math module documentation says: Except when explicitly noted otherwise, all return values are floats. But this code returns an integer: from math import prod; prod((1,2,3)) Doc should "explicitly note otherwise" here, I imagine. The issue being wan

[issue46632] test_ssl: 2 tests fail on cstratak-CentOS9-fips-x86_64

2022-02-22 Thread STINNER Victor
STINNER Victor added the comment: Same on AMD64 CentOS9 FIPS Only Blake2 Builtin Hash 3.x: https://buildbot.python.org/all/#/builders/828/builds/196 test.pythoninfo: fips.linux_crypto_fips_enabled: 1 fips.openssl_fips_mode: 1 ssl.OPENSSL_VERSION: OpenSSL 3.0.1 14 Dec 2021 ssl.OPENSSL_VERSION_

[issue20923] [doc] Explain ConfigParser 'valid section name' and .SECTCRE

2022-02-22 Thread Irit Katriel
Irit Katriel added the comment: Thank you @vidhya! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue20923] [doc] Explain ConfigParser 'valid section name' and .SECTCRE

2022-02-22 Thread miss-islington
miss-islington added the comment: New changeset 2387aeacc78bfd9d314428b79590b2b47511bf33 by Miss Islington (bot) in branch '3.9': [3.9] bpo-20923 : [doc] Explain ConfigParser 'valid section name' and .SECTCRE (GH-31413) (GH-31507) https://github.com/python/cpython/commit/2387aeacc78bfd9d314

[issue46725] Unpacking without parentheses is allowed since 3.9

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

[issue46729] Better str() for BaseExceptionGroup

2022-02-22 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2022-02-22 Thread Cooper Lees
Cooper Lees added the comment: FWIW - Will be looking to add to flake8-bugbear here: https://github.com/PyCQA/flake8-bugbear/issues/222 -- ___ Python tracker ___

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

2022-02-22 Thread Cooper Lees
Cooper Lees added the comment: I would never want to do that ... I understand it's bad. Just questioning things before adding lints so we put things in the right places and more importantly making sure I understand. Thanks for the discussion all. --

[issue46729] Better str() for BaseExceptionGroup

2022-02-22 Thread Irit Katriel
Irit Katriel added the comment: New changeset 38b5acf8673ce42a401263a2528202e44d6ae60a by Irit Katriel in branch 'main': bpo-46729: add number of sub-exceptions in str() of BaseExceptionGroup (GH-31294) https://github.com/python/cpython/commit/38b5acf8673ce42a401263a2528202e44d6ae60a -

[issue20923] [doc] Explain ConfigParser 'valid section name' and .SECTCRE

2022-02-22 Thread miss-islington
miss-islington added the comment: New changeset a7af34d407b344de7f138c002854a3e16ecb9db5 by Miss Islington (bot) in branch '3.10': [3.10] bpo-20923 : [doc] Explain ConfigParser 'valid section name' and .SECTCRE (GH-31413) (GH-31506) https://github.com/python/cpython/commit/a7af34d407b344de7

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

2022-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, I say that with suppress(): ... is equivalent to try: ... except (): pass or try: ... except BaseException as err: if not isinstance(err, ()): raise If you want to suppress all

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

2022-02-22 Thread Zachary Ware
Zachary Ware added the comment: >>> try: ... raise ValueError("I raise...") ... except (): ... pass ... Traceback (most recent call last): File "", line 2, in ValueError: I raise... -- ___ Python tracker

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

2022-02-22 Thread Cooper Lees
Cooper Lees added the comment: Ok thanks. Looks like the warning in flake8-bugbear is the right place then, unfortunately. And just to be sure: > Note that suppress without arguments corresponds to "except" and isinstance() > with empty tuple. Are you saying that `contextlib.suppress()` sh

[issue46825] slow matching on regular expression

2022-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The re module does not support features corresponding to std::regex_constants::__polynomial in C++. Rewrite your regular expression or try to use alternative regex implementations (for example wrappers around the re2 library or C++ regex library). ---

[issue43545] Use LOAD_GLOBAL to set __module__ in class def

2022-02-22 Thread Irit Katriel
Irit Katriel added the comment: Please reopen or create and new issue if this is still relevant and you can provide more information. -- stage: -> resolved status: pending -> closed ___ Python tracker

[issue46717] Raising exception multiple times leaks memory

2022-02-22 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2022-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Zachary. Note that suppress without arguments corresponds to "except" and isinstance() with empty tuple. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed

[issue20923] [doc] Explain ConfigParser 'valid section name' and .SECTCRE

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

[issue20923] [doc] Explain ConfigParser 'valid section name' and .SECTCRE

2022-02-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 11.0 -> 12.0 pull_requests: +29633 pull_request: https://github.com/python/cpython/pull/31506 ___ Python tracker ___

[issue20923] [doc] Explain ConfigParser 'valid section name' and .SECTCRE

2022-02-22 Thread Irit Katriel
Irit Katriel added the comment: New changeset bba8008f99d615a02984422a3825082bb5621f5a by vidhya in branch 'main': bpo-20923 : [doc] Explain ConfigParser 'valid section name' and .SECTCRE (GH-31413) https://github.com/python/cpython/commit/bba8008f99d615a02984422a3825082bb5621f5a

[issue36557] [doc] Clarify the meaning of /uninstall in windows cli

2022-02-22 Thread Irit Katriel
Irit Katriel added the comment: Thank you @slateny. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36557] [doc] Clarify the meaning of /uninstall in windows cli

2022-02-22 Thread miss-islington
miss-islington added the comment: New changeset aa9a5c4d72e083f8b4c635d79f7450dbe8319469 by Miss Islington (bot) in branch '3.9': bpo-36557: Updated wording for using/windows (GH-31457) https://github.com/python/cpython/commit/aa9a5c4d72e083f8b4c635d79f7450dbe8319469 -- ___

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

2022-02-22 Thread Zachary Ware
Zachary Ware added the comment: But `suppress` takes varargs; from `suppress`'s perspective, there is no difference between `suppress()` and `l=[];suppress(*l)`. There would be a difference at the AST level, but trying to find it within `suppress` to issue a warning seems unfeasible. Certa

[issue46800] Support for pause(2)

2022-02-22 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue36557] [doc] Clarify the meaning of /uninstall in windows cli

2022-02-22 Thread miss-islington
miss-islington added the comment: New changeset d04fb9213a547def5604fbc60b0554c176d4c998 by Miss Islington (bot) in branch '3.10': [3.10] bpo-36557: Updated wording for using/windows (GH-31457) (GH-31504) https://github.com/python/cpython/commit/d04fb9213a547def5604fbc60b0554c176d4c998

[issue46822] test_create_server_ssl_over_ssl times out on some systems

2022-02-22 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue36557] [doc] Clarify the meaning of /uninstall in windows cli

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

[issue36557] [doc] Clarify the meaning of /uninstall in windows cli

2022-02-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +29631 pull_request: https://github.com/python/cpython/pull/31504 ___ Python tracker _

[issue36557] [doc] Clarify the meaning of /uninstall in windows cli

2022-02-22 Thread Irit Katriel
Irit Katriel added the comment: New changeset 9a0d941df4c3e1efb8b3017cd2c2de17e582fd5c by slateny in branch 'main': bpo-36557: Updated wording for using/windows (GH-31457) https://github.com/python/cpython/commit/9a0d941df4c3e1efb8b3017cd2c2de17e582fd5c -- _

[issue44032] Function locals and evaluation stack should be stored in a contiguous, per-thread stack

2022-02-22 Thread STINNER Victor
STINNER Victor added the comment: Removing the PyFrameObject.f_code member (commit b11a951f16f0603d98de24fee5c023df83ea552c) broke by gevent project: * https://github.com/gevent/gevent/issues/1867 * https://bugs.python.org/issue40421#msg413719 --

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2022-02-22 Thread STINNER Victor
STINNER Victor added the comment: The f_code member has been removed by in bpo-44032 by the commit b11a951f16f0603d98de24fee5c023df83ea552c. The f_frame member has been added in bpo-44590 by the commit ae0a2b756255629140efcbe57fc2e714f0267aa3. See also bpo-46355 [C API] Document PyFrameObje

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2022-02-22 Thread STINNER Victor
STINNER Victor added the comment: The gevent project is not compatible with Python 3.11: it gets and sets directly PyFrameObject.f_code member which has been removed in Python 3.11 (moved to PyFrameObject.f_frame.f_code internal C API). gevent issue: https://github.com/gevent/gevent/issues/1

[issue46725] Unpacking without parentheses is allowed since 3.9

2022-02-22 Thread miss-islington
miss-islington added the comment: New changeset 7fb94fd7a88f14096a5094d8a979a3912672 by Pablo Galindo Salgado in branch 'main': bpo-46725: Document starred expressions in for statements (GH-31481) https://github.com/python/cpython/commit/7fb94fd7a88f14096a5094d8a979a3912672

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

2022-02-22 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

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

2022-02-22 Thread Eric Snow
Eric Snow added the comment: Thanks for the updates, Eddie. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

  1   2   >