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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19533>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to