__init__ is the initialiser

Devin Jeanpierre jeanpierreda at gmail.com
Mon Feb 3 02:54:31 CET 2014

On Sun, Feb 2, 2014 at 5:37 PM, Chris Angelico <rosuav at gmail.com> wrote:
> On Mon, Feb 3, 2014 at 12:24 PM, Devin Jeanpierre
>> Destroying memory is comparatively easy, as you say -- just make the
>> object's internal state "invalid", rather than adding anything to the
>> language.
> Yeah. Works fine if you have a cooperative system that checks that
> state every time; otherwise, it'd need at least some language support
> (the goal is to have its destructor called and all its references
> wiped, so resources get released).

I guess my point is that I don't see what you need on top of extension
modules. Same for previous paragraph.

-- Devin

More information about the Python-list mailing list