Searching equivalent to C++ RAII or deterministic destructors

Christian Heimes lists at cheimes.de
Thu Jul 2 08:10:55 EDT 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.

Christian




More information about the Python-list mailing list