Message202465
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. |
|
Date |
User |
Action |
Args |
2013-11-09 06:54:19 | Sworddragon | set | recipients:
+ Sworddragon |
2013-11-09 06:54:19 | Sworddragon | set | messageid: <1383980059.61.0.697157457336.issue19533@psf.upfronthosting.co.za> |
2013-11-09 06:54:19 | Sworddragon | link | issue19533 messages |
2013-11-09 06:54:19 | Sworddragon | create | |
|