"Help needed - I don't understand how Python manages memory"

sturlamolden sturlamolden at yahoo.no
Mon Apr 21 12:34:39 EDT 2008


On Apr 21, 4:09 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:

> I'm not sure if this will help the OP at all - going into a world of dangling pointers, keeping track of ownership, releasing memory by hand... One of the good things of Python is automatic memory management. Ensuring that all references to an object are released (the standard Python way) is FAR easier than doing all that by hand.

The owner was complaining he could not manually release memory using
del, as if it was Python's equivalent of a C++ delete[] operator. I
showed him how it could be done. I did not say manual memory
management is a good idea.









More information about the Python-list mailing list