New submission from Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue44796> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com