[New-bugs-announce] [issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec
Serhiy Storchaka
report at bugs.python.org
Sat Jul 31 09:31:29 EDT 2021
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
Adding __parameters__ and __getitem__ in TypeVar and ParamSpec allows to generalize and simplify the code (especially the C code) and allows to add more runtime checks. It may open ways for further simplification.
Unfortunately it is not compatible with issue44098, so the latter changes should be reverted.
----------
components: Library (Lib)
messages: 398640
nosy: gvanrossum, kj, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Add __parameters__ and __getitem__ in TypeVar and ParamSpec
type: enhancement
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44796>
_______________________________________
More information about the New-bugs-announce
mailing list