Message400473
> 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. |
|
Date |
User |
Action |
Args |
2021-08-28 14:36:07 | gvanrossum | set | recipients:
+ gvanrossum, rhettinger, terry.reedy, methane, serhiy.storchaka, Guido.van.Rossum, iritkatriel |
2021-08-28 14:36:07 | gvanrossum | set | messageid: <1630161367.78.0.261065671281.issue36521@roundup.psfhosted.org> |
2021-08-28 14:36:07 | gvanrossum | link | issue36521 messages |
2021-08-28 14:36:07 | gvanrossum | create | |
|