Inada Naoki <songofaca...@gmail.com> added the comment:

> 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.

As far as I know, surrounding code objects (e.g. global, class body) will be 
removed right after they are executed.
So removing docstring by `func.__doc__ = None` can release memory for 
docstring, while we can not reduce startup time by this.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36521>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to