[Python-ideas] Stub class for Generic to further improve PEP 560
Ilya Kulakov
kulakov.ilya at gmail.com
Thu Nov 30 16:25:22 EST 2017
My point is to have a class with public interface identical to typing.Generic, but without all runtime overhead.
It's based on the assumption that few developers benefit with typing.Generic addition during production application execution.
Those who do, can subclass typing.Generic directly.
> On Nov 30, 2017, at 1:22 PM, Ivan Levkivskyi <levkivskyi at gmail.com> wrote:
>
> FWIW, with PEP 560 generic classes will stay generic at runtime. I am not sure what you mean by this, but
> practically all existing runtime APIs (with few exceptions, see PEP 560) for generics will stay.
More information about the Python-ideas
mailing list