This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients Guido.van.Rossum, JelleZijlstra, docs@python, gvanrossum, kj, petr.viktorin, ronaldoussoren
Date 2021-06-15.06:28:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623738494.75.0.329500973592.issue44392@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-06-15 06:28:14ronaldoussorensetrecipients: + ronaldoussoren, gvanrossum, petr.viktorin, docs@python, Guido.van.Rossum, JelleZijlstra, kj
2021-06-15 06:28:14ronaldoussorensetmessageid: <1623738494.75.0.329500973592.issue44392@roundup.psfhosted.org>
2021-06-15 06:28:14ronaldoussorenlinkissue44392 messages
2021-06-15 06:28:14ronaldoussorencreate