does python have useless destructors?

David Turner dkturner at telkomsa.net
Mon Jun 14 11:03:50 EDT 2004


"Tim Peters" <tim.one at comcast.net> wrote in message news:<mailman.932.1087202237.6949.python-list at python.org>...
> [David Turner]
> ...
> > The D programming language somehow contrives to have both garbage
> > collection and working destructors.
> 
[snip D docs]
> 
> > So why can't Python?
> 
> It's too hard to come up with an implementation so full of subtle but
> crucial distinctions <wink>.

Heh.  You're quite right of course.  In fact, the D implementation is
bad in many ways, not least of which is the "auto" keyword.  But
still, this is a feature I'd very much like to see in Python.  I
*want* to spend more time in Python, but as things stand my C++ code
is more robust.

Regards
David Turner



More information about the Python-list mailing list