On Mon, 7 Oct 2019 at 17:16, Guido van Rossum <gu...@python.org> wrote:

> Hi Philippe,
>
> Maybe the implementation of `_GenericAlias` should live in
> Objects/typobject.c, and be a part of the public API. Then the "|" overload
> on PyType_Type (also there) can reference it directly, it can be exported
> from Python/bltinsmodule.c, and typing can reference it as a builtin.
>

That file (typeobject) is already quite big, so I think we might consider
also creating a new file Objects/genericalias.c, but it is just a minor
wish. I think both ways are fine.

--
Ivan
_______________________________________________
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/6N2KUJOQRTXTDTDXJL57GECGA5YETA7P/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to