does python have useless destructors?

Marcin 'Qrczak' Kowalczyk qrczak at
Mon Jun 14 10:53:43 CEST 2004

On Mon, 14 Jun 2004 00:00:39 -0700, David Turner wrote:

> The D programming language somehow contrives to have both garbage
> collection and working destructors.  So why can't Python?

What happens in D when you make a pointer to a local variable,
the variable goes out of scope, and you use the pointer?

Undefined behavior? If so, it's unacceptable for Python.

   __("<         Marcin Kowalczyk
   \__/       qrczak at

More information about the Python-list mailing list