Message400512
> This would actually make it harder to strip docstrings e.g. during unmarshalling, since you don't know which constants refer to docstrings.
We can not strip class docstring anyway.
One idea to strip docstring during startup: Add new opcode only for storing __doc__.
We can use it for both of func and class. The opcode will store None if "remove docstring during startup" option is enabled. And surrounding code objects will be released after executing global/class body. |
|
Date |
User |
Action |
Args |
2021-08-29 01:46:10 | methane | set | recipients:
+ methane, gvanrossum, rhettinger, terry.reedy, serhiy.storchaka, Guido.van.Rossum, iritkatriel |
2021-08-29 01:46:10 | methane | set | messageid: <1630201570.57.0.313393222381.issue36521@roundup.psfhosted.org> |
2021-08-29 01:46:10 | methane | link | issue36521 messages |
2021-08-29 01:46:10 | methane | create | |
|