[issue40080] Stripping annotations out as a new optimization mode
Raymond Hettinger
report at bugs.python.org
Thu Mar 26 22:48:40 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Duplicate of https://bugs.python.org/issue3646
This was rejected because it breaks functools.singledispatch(), typing.NamedTuple(), and dataclasses.dataclass(). Also the space savings was negligible -- typically take much less space than for docstrings because the annotations dict consists of pointers to existing objects.
----------
nosy: +rhettinger
resolution: -> duplicate
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40080>
_______________________________________
More information about the Python-bugs-list
mailing list