Message 400473 - Python tracker

Message400473

Author gvanrossum
Recipients Guido.van.Rossum, gvanrossum, iritkatriel, methane, rhettinger, serhiy.storchaka, terry.reedy
Date 2021-08-28.14:36:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630161367.78.0.261065671281.issue36521@roundup.psfhosted.org>
In-reply-to
Content
> I'd like to remove docstring from code object at all.
> func.__doc__ can be set by MAKE_FUNCTION or STORE_ATTR.

You'd just be moving the problem though -- the docstring would have be included in the co_consts array of the surrounding code object instead of the function object.

This would actually make it harder to strip docstrings e.g. during unmarshalling, since you don't know which constants refer to docstrings.
History
Date User Action Args
2021-08-28 14:36:07gvanrossumsetrecipients: + gvanrossum, rhettinger, terry.reedy, methane, serhiy.storchaka, Guido.van.Rossum, iritkatriel
2021-08-28 14:36:07gvanrossumsetmessageid: <1630161367.78.0.261065671281.issue36521@roundup.psfhosted.org>
2021-08-28 14:36:07gvanrossumlinkissue36521 messages
2021-08-28 14:36:07gvanrossumcreate