[issue36466] Adding a way to strip annotations from compiled bytecode

Raymond Hettinger report at bugs.python.org
Sat Mar 30 03:04:25 EDT 2019


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

-0 At first blush, this seems reasonable. Like removing docstrings, it would make the bytecode more compact.  That said, annotations can be used for more things than typing (they predate typing and could be used for anything). It's unclear whether stripping them might break published modules that rely on the annotations being present.

Leaving this feature request open so that it can gather more comments from the other devs.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36466>
_______________________________________


More information about the Python-bugs-list mailing list