Ronald Oussoren <ronaldousso...@mac.com> added the comment:
Why should this be deprecated at all? The API is a convenient way to add ``__class_getitem__`` in a way that is consistent with the implementation for builtin types and the stdlib. I noticed the lack of documentation when I worked on implementing this for PyObjC (an easy first step towards adding type stubs to that project). For me the alternative to using Py_GenericAlias would be a dummy implementation of ``__class_getitem__`` that just returns self. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44392> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com