[Python-Dev] Investigating Python memory footprint of one real Web application

INADA Naoki songofacandy at gmail.com
Tue Jan 24 07:23:50 EST 2017


> 3. I am -1 on ignoring annotations altogether. Sometimes they could be
> helpful at runtime: typing.NamedTuple and mypy_extensions.TypedDict are two
> examples.

ignoring annotations doesn't mean ignoring typing at all.
You can use typing.NamedTuple even when functions doesn't have __annotations__.

> Also some people use annotations for runtime checks or even for things
> unrelated to typing. I think it would be a pity to lose these
> functionalities for small performance gains.
>

Sure.  It should be option, for backward compatibility.


Regards,


More information about the Python-Dev mailing list