Unbound names in __del__
Torsten Bronger
bronger at physik.rwth-aachen.de
Fri Jun 17 09:16:38 EDT 2005
Hallöchen!
Peter Hansen <peter at engcorp.com> writes:
> [...]
>
> What's your use case for del?
Every instance represents a "session" to a measurement instrument.
After the instance is deleted, the session should be closed to free
resources.
If the program exists, this is actually not necessary, because then
all resources are freed anyway. __del__ is called nevertheless.
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
More information about the Python-list
mailing list