[issue33205] GROWTH_RATE prevents dict shrinking

2022-01-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue46517] Review exception handling in urllib

2022-01-25 Thread Martin Panter
Martin Panter added the comment: The linked code is for urllib.parse.urlencode, looking something like try: if len(query) and not isinstance(query[0], tuple): raise TypeError except TypeError: ty, va, tb = sys.exc_info() raise TypeError("not a valid non-string sequence "

[issue46527] enumerate no longer accepts iterable keyword argument

2022-01-25 Thread Dong-hee Na
Change by Dong-hee Na : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41846] IDLE subsection of What's New 3.10

2022-01-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +29088 pull_request: https://github.com/python/cpython/pull/30907 ___ Python tracker _

[issue46517] Review exception handling in urllib

2022-01-25 Thread Irit Katriel
Irit Katriel added the comment: > The author probably also wants the TypeError initially raised from the > "len(query)" and "query[0]" operations to get the same "not a valid . . ." > message. I see. I didn’t realise it’s deprecated, I guess we’ll leave it alone then. Thanks. -- re

[issue46511] dataclasses: Allow typing.Annotated to wrap dataclasses-specific annotations

2022-01-25 Thread Gregory Beauregard
Gregory Beauregard added the comment: Thanks for getting back so quickly. Annotated is set up to be 'transparent' by default to `typing.get_type_hints` so in the case of using `typing.py` it can be made straightforward by chaining with `typing.get_origin`, I think. I don't see any reasonabl

[issue46511] dataclasses: Allow typing.Annotated to wrap dataclasses-specific annotations

2022-01-25 Thread Gregory Beauregard
Gregory Beauregard added the comment: Or rather, ^\s*(?:(?:\w+\s*\.)?\s*Annotated\s*\[)?(?:\s*(\w+)\s*\.)?\s*(\w+) -- ___ Python tracker ___ _

<    1   2   3