Hello,

I try to implement a *proof of concept* of Pep-0604
<https://www.python.org/dev/peps/pep-0604/>.

To do this, the _GenericAlias must be in builtin, because I would like to
update issubclass() and isinstance() to accept Union.
These methods are in builtin, and must be run without others modules.

But, the class _GenericAlias is in typing module, with the Python
implementation in Lib/typing.py, and the C implementation is in
Modules/_ctypes.

For you, what is the best approach to move the _GenericAlias and all
dependencies in the builtin "module" ?

Philippe
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/FVDIL2DG3EP7CO452MUZYPATN4R2CEHN/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to