Searching equivalent to C++ RAII or deterministic destructors

Christian Heimes lists at
Thu Jul 2 14:10:55 CEST 2009

Dave Angel wrote:
> Look also at 'del' a command in the language which explicitly deletes an
> object.

No, you are either explaining it the wrong way or you have been fallen
for a common misinterpretation of the del statement. The del statement
only removes the object from the current scope. This means it decreases
the reference count by one. It does *not* remove the object.


More information about the Python-list mailing list