does python have useless destructors?
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Tue Jun 15 08:22:32 EDT 2004
On Tue, 15 Jun 2004 04:26:07 -0700, David Turner wrote:
> Hmm... I wonder if it would be possible to override the "="
> operator...?
No, and it would not be enough anyway. You would have to catch places
when an argument is passed to a function, or is returned, or when a local
variable goes out of scope, or when an object is put in a container,
or perhaps others that I forgot. It's impractical.
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the Python-list
mailing list