[issue19533] Unloading docstrings from memory if -OO is given

Sworddragon report at bugs.python.org
Sat Nov 9 07:54:19 CET 2013


New submission from Sworddragon:

Using -OO on a script will remove the __doc__ attributes but the docstrings will still be in the process memory. In the attachments is an example script which demonstrates this with a docstring of ~10 MiB (opening the file in an editor can need some time). Calling "python3 -OO test.py" will result in a memory usage of ~16 MiB on my system (Linux 64 Bit) while test.__doc__ is None.

----------
components: Interpreter Core
files: test.py
messages: 202465
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: Unloading docstrings from memory if -OO is given
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file32550/test.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19533>
_______________________________________


More information about the Python-bugs-list mailing list