[issue44518] Finalization of non-exhausted asynchronous generators is deferred

2021-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I do not understand what do you mean. The problem is that non-exhausted asynchronous generators are not finalized until asyncio.run() is finished. This differs from synchronous generators which are finalized as early as possible (in CPython).

[issue44516] Update bundled pip to 21.1.3

2021-06-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +lukasz.langa, pablogsal priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list

[issue44518] Finalization of non-exhausted asynchronous generators is deferred

2021-06-27 Thread Guido van Rossum
Guido van Rossum added the comment: Can you repro this without asyncio? -- nosy: +Guido.van.Rossum ___ Python tracker ___ ___

[issue44519] help(math.fabs)

2021-06-27 Thread David Lambert
David Lambert added the comment: Hi Ray, I'm glad this was a conscious choice.  I found a person confused by the output of print(abs(3), math.fabs(3)) Perhaps the manual would mention return values->that's not an annotation. Thanks for considering, Dave On 6/27/21 12:42 PM, Raymond

[issue44464] Remove flake8 exception for deprecation warning (importlib.metadata)

2021-06-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset f4b31cdbc043449f3df7d291da67bcb3736be0db by Miss Islington (bot) in branch '3.10': bpo-44464: Remove special exclusion for flake8 in the deprecation warnings. (GH-26807) (GH-26929)

[issue37741] importlib.metadata docs not showing up in the module index

2021-06-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 17b916737bd05a11ec24341990c4d8dbfee8f94b by Jason R. Coombs in branch '3.9': [3.9] bpo-37741: make importlib.metadata docs discoverable through a module directive. (GH-25415) (GH-26500)

[issue44464] Remove flake8 exception for deprecation warning (importlib.metadata)

2021-06-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +25499 pull_request: https://github.com/python/cpython/pull/26929 ___ Python tracker

[issue44464] Remove flake8 exception for deprecation warning (importlib.metadata)

2021-06-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset efe7d08d178a7c09bcca994f2068b019c8633d83 by Jason R. Coombs in branch 'main': bpo-44464: Remove special exclusion for flake8 in the deprecation warnings. (#26807)

[issue29466] pickle does not serialize Exception __cause__ field

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: I get different output for Serhiy's first example now, but the same for the second: >>> try: import foo ... except Exception as ex: exc = ex ... >>> exc.name 'foo' >>> exc.__reduce__() (, ("No module named 'foo'",), {'name': 'foo'}) >>> exc = StopIteration()

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-06-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: In https://github.com/python/importlib_metadata/issues/324, I painstakingly created a library to perform robust performance monitoring of behaviors in the library and specifically added tests that capture the performance of entry_points against

[issue29466] pickle does not serialize Exception __cause__ field

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: See also issue43460, issue32696, issue30005. -- ___ Python tracker ___ ___ Python-bugs-list

[issue30005] Pickling and copying exceptions doesn't preserve non-__dict__ attributes

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: See also issue43460, issue32696, issue29466. -- nosy: +iritkatriel versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue32696] Fix pickling exceptions with multiple arguments

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: See also issue43460, issue30005, issue29466 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43460] Exception copy error

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: See issue32696, issue30005, issue29466 -- components: +Library (Lib) nosy: +iritkatriel versions: +Python 3.11 ___ Python tracker ___

[issue40620] [doc] Range tutorial shorthand could be made clearer

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: Thank you Jack! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40620] [doc] Range tutorial shorthand could be made clearer

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: New changeset 1acd1e63850d179383fcb638dcefee4c66b3ca4e by Miss Islington (bot) in branch '3.9': bpo-40620: Clarify tutorial controlflow.rst ``range`` examples (GH-26919) (GH-26928)

[issue40620] [doc] Range tutorial shorthand could be made clearer

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: New changeset aeb63392e74976b4289b38f32f1d6e7ff2e0a712 by Miss Islington (bot) in branch '3.10': bpo-40620: Clarify tutorial controlflow.rst ``range`` examples (GH-26919) (GH-26927)

[issue40620] [doc] Range tutorial shorthand could be made clearer

2021-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +25498 pull_request: https://github.com/python/cpython/pull/26928 ___ Python tracker ___

[issue40620] [doc] Range tutorial shorthand could be made clearer

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: New changeset 2f49c9debc2efe010c757be3bdbd6493f1ebc5f6 by jdevries3133 in branch 'main': bpo-40620: Clarify tutorial controlflow.rst ``range`` examples (GH-26919) https://github.com/python/cpython/commit/2f49c9debc2efe010c757be3bdbd6493f1ebc5f6 --

[issue40620] [doc] Range tutorial shorthand could be made clearer

2021-06-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +25497 pull_request: https://github.com/python/cpython/pull/26927 ___ Python tracker

[issue38062] Clarify that atexit.unregister matches by equality, not identity

2021-06-27 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___

[issue43718] HTTP CONNECT response not subject to debug level

2021-06-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: Also note that the debug arg should be provided only if it's greater than 0, for cases when you might want to have connection at debug 0, and a custom response class with a default nonzero debug level. -- ___

[issue17186] no way to introspect registered atexit handlers

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: See also issue32082. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32082] atexit module: allow getting/setting list of handlers directly

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: See also issue17186. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43718] HTTP CONNECT response not subject to debug level

2021-06-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: Michael: Thanks for the report! would you like to create a PR? If not, I can do that. -- nosy: +andrei.avk ___ Python tracker ___

[issue44452] Allow paths to be joined without worrying about a leading slash

2021-06-27 Thread Zbyszek Jędrzejewski-Szmek
Zbyszek Jędrzejewski-Szmek added the comment: > I can see the need for generalized 'drive' support that sets an arbitrary > path prefix as the 'drive'. For example, if "/var/tmp/instroot" is a 'drive', > then joining it to "/some/path" returns "/var/tmp/instroot/some/path". > However,

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2021-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Pending' is pretty useless because any comment erases it. This is a tracker bug that will not be fixed. -- status: open -> pending ___ Python tracker

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2021-06-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reread the patch and my previous comment and am no more positive than I was then. The one use case presented is second-hand. Chris said "in order for [Bazaar] to use a custom sequence matcher, they had to essentially copy-paste and modify the stdlib

[issue31314] email throws exception with oversized header input

2021-06-27 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue44452] Allow paths to be joined without worrying about a leading slash

2021-06-27 Thread Eryk Sun
Eryk Sun added the comment: > I was thinking about about a case where paths are resolved relative > to a container root in a filesystem. I can see the need for generalized 'drive' support that sets an arbitrary path prefix as the 'drive'. For example, if "/var/tmp/instroot" is a 'drive',

[issue17305] IDNA2008 encoding is missing

2021-06-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: Maybe deprecate idna so that users are strongly prompted to consider the pypi idna? -- nosy: +andrei.avk ___ Python tracker ___

[issue44519] help(math.fabs)

2021-06-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion but we've not adopted type annotations in the documentation. -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue42238] Deprecate suspicious.py?

2021-06-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44512] csv.DictWriter: inconsistency in handling of extrasaction arg

2021-06-27 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch pull_requests: +25496 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26924 ___ Python tracker ___

[issue18618] Need an atexit.register equivalent that also works in subinterps

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: I think this is a duplicate of issue31901. -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue40528] Improve / Clear ASDL generator

2021-06-27 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: These were all the cleanups on my checklist, so can close the issue now. I'll probably create other issues if something additional comes up -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue40528] Improve / Clear ASDL generator

2021-06-27 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: New changeset 107a2c59c91b3911bdd6dfdb83271c588c506a5a by Batuhan Taskaya in branch 'main': bpo-40528: fix is_simple(sum)s behavior for attributes (GH-26918) https://github.com/python/cpython/commit/107a2c59c91b3911bdd6dfdb83271c588c506a5a --

[issue44519] help(math.fabs)

2021-06-27 Thread David Lambert
New submission from David Lambert : math.fabs returns float. The documentation should say so, and help(math.fabs) should include the expected return type -> float fabs(x, /) -> float Return the absolute value of the float x. I did not check, but expect these annotations recommendations

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: I agree with Terry that this proposal significantly complicates the API and the motivation for it is not very strong. I will close the issue in a couple of weeks if nobody objects. -- nosy: +iritkatriel resolution: -> rejected status: open -> pending

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-27 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I haven't observed this issue on the CI since GH-26893 through GH-26896 was merged. Marking this as resolved. If anyone disagrees, feel free to reopen :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-27 Thread Julien Palard
Julien Palard added the comment: > My computer is only configured for English. Running Firefox 90.0b9 (64-bit) > on macOS 11.4 (20F71). To add to this, it had nothing to do with your setup, the file was just lying here on the server due to the previous build happening on the same hierarchy.

[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-27 Thread Julien Palard
Julien Palard added the comment: Thanks all for reporting and following on the issue. The fix on docsbuild script worked as expected and the page now 404 as expected as it does no logner exists in 3.11: https://docs.python.org/3.11/library/parser.html -- resolution: -> fixed

[issue44110] Improve string's __getitem__ error message

2021-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Miguel. I decided to not backport this change to 3.10 because the benefit is too small in comparison with possibility to break someone's tests. -- ___ Python tracker

[issue42197] Disable automatic update of frame locals during tracing

2021-06-27 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: > > So, it's expected that `some_module` and `v` would be in the locals at this > > point. > If a function does not have the local variables `some_module` and `v`, then > the change wouldn't be visible to the debugee. So what difference does it make? Right

[issue44110] Improve string's __getitem__ error message

2021-06-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.10 ___ Python tracker ___

[issue44110] Improve string's __getitem__ error message

2021-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ed1076428cca3c8dc7d075c16a575aa390e25fb8 by Miguel Brito in branch 'main': bpo-44110: Improve string's __getitem__ error message (GH-26042) https://github.com/python/cpython/commit/ed1076428cca3c8dc7d075c16a575aa390e25fb8 -- nosy:

[issue42197] Disable automatic update of frame locals during tracing

2021-06-27 Thread Mark Shannon
Mark Shannon added the comment: > So, it's expected that `some_module` and `v` would be in the locals at this > point. If a function does not have the local variables `some_module` and `v`, then the change wouldn't be visible to the debugee. So what difference does it make? --

[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4861fdaf25f246eb9ee4e8161c15dad26efe895d by Serhiy Storchaka in branch '3.9': [3.9] bpo-44482: Fix very unlikely resource leak in glob in non-CPython implementations (GH-26843). (GH-26916)

[issue42197] Disable automatic update of frame locals during tracing

2021-06-27 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: @ncoghlan I took a quick look at the PEP... I'm a bit worried about: > On optimised frames, the Python level f_locals API will become a direct > read/write proxy for the frame's local and closure variable storage, and > hence no longer support storing

[issue44452] Allow paths to be joined without worrying about a leading slash

2021-06-27 Thread Zbyszek Jędrzejewski-Szmek
Zbyszek Jędrzejewski-Szmek added the comment: > It doesn't make sense to "concatenate" one absolute path to another. Please see the original description of the issue, or Serhiy's example. I was thinking about about a case where paths are resolved relative to a container root in a filesystem.

[issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

2021-06-27 Thread E. Paine
E. Paine added the comment: > Can you change labels on your own PRs? Sadly not (hence why I need to ask for e.g. skip news) -- ___ Python tracker ___

[issue44518] Finalization of non-exhausted asynchronous generators is deferred

2021-06-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In the following example: def gen(): try: yield 1 finally: print('finalize inner') def func(): try: for x in gen(): break finally: print('finalize outer') func() print('END') the output in

[issue42238] Deprecate suspicious.py?

2021-06-27 Thread Julien Palard
Julien Palard added the comment: The previous one could probably be implemented in rstlint using (an equivalent of): git grep ':[a-z]\+:``[^:` ]+``' Doc/ Maybe specialized to known roles, like the script specializes to known directives. --

[issue42238] Deprecate suspicious.py?

2021-06-27 Thread Julien Palard
Julien Palard added the comment: Spotted a true positive in b19f45533942e4ad7ddf9d2d94f8b87c6f746bce: :const:``None`` (I'm trying to build a true positive list, to have usefull cases where suspicious is usefull, so in the long term I can maybe implement those cases in rslint instead.)

[issue44452] Allow paths to be joined without worrying about a leading slash

2021-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I understand why this problem arose. If you parse an HTTP URL, its path always starts with "/" if not empty. And you usually want to interpret it as a relative to some base directory. But lstrip('/') works well here. In any case you need to have some

[issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

2021-06-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There were some issues with the backporting bot. Seems they were temporary. Thank you for your contribution E. Paine. For this issue and others. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

2021-06-27 Thread miss-islington
miss-islington added the comment: New changeset e1f3bd2bb50a76ba15a2f8d561e2c9968ae3a1b2 by Miss Islington (bot) in branch '3.10': bpo-44404: tkinter `after` support callable classes (GH-26812) https://github.com/python/cpython/commit/e1f3bd2bb50a76ba15a2f8d561e2c9968ae3a1b2 --

[issue42197] Disable automatic update of frame locals during tracing

2021-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: I've updated PEP 558 with a reference back to this ticket as additional motivation (the update also addresses several of the fragility concerns that Mark raised): https://github.com/python/peps/pull/1787 There's still work to be done to bring the reference