This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients Guido.van.Rossum, gvanrossum, iritkatriel, methane, rhettinger, serhiy.storchaka, terry.reedy
Date 2021-08-29.01:46:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630201570.57.0.313393222381.issue36521@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2021-08-29 01:46:10methanesetrecipients: + methane, gvanrossum, rhettinger, terry.reedy, serhiy.storchaka, Guido.van.Rossum, iritkatriel
2021-08-29 01:46:10methanesetmessageid: <1630201570.57.0.313393222381.issue36521@roundup.psfhosted.org>
2021-08-29 01:46:10methanelinkissue36521 messages
2021-08-29 01:46:10methanecreate