Set x to to None and del x doesn't release memory in python 2.7.1 (HPUX 11.23, ia64)

Chris Angelico rosuav at gmail.com
Thu Mar 7 08:19:38 CET 2013


On Thu, Mar 7, 2013 at 5:33 PM, Wong Wah Meng-R32813
<r32813 at freescale.com> wrote:
> [] The example is written for illustration purpose. Thanks for pointing out a better way of achieving the same result. Yes it seems so that the OS thinks the piece allocated to Python should not be taken back unless the process dies. :(

Don't be too bothered by that. That memory will be reused by Python
for subsequent allocations.

ChrisA



More information about the Python-list mailing list