On Mon, Oct 7, 2019, at 10:32, Philippe Prados wrote:
> 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.

Why can't this be handled as an __instancecheck__/__subclasscheck__?
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/UZRHLKTGR7USOD365N57Y2QVUWWMGPJ7/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to