[C++-sig] object lifecycle

David Abrahams david.abrahams at rcn.com
Tue Jul 2 19:45:41 CEST 2002


----- Original Message -----
From: "Dave Hawkes" <daveh at cadlink.com>
Newsgroups: gmane.comp.python.c++
To: <c++-sig at python.org>
Sent: Tuesday, July 02, 2002 1:31 PM
Subject: [C++-sig] object lifecycle


> I was just reviewing some of the recent changes to the structure of
object
> and noticed that it now holds a PyObject* directly, rather than a
handle<>.
> However I'm not sure how an object gets cleaned up after it is destroyed
as
> no destructor is defined. I'm sure I must be missing something obvious
here,
> but I can't see how the reference count of the controlled PyObject* is
> managed?

No, you're not missing anything -- you're the man!
Thanks for checking my work.

I'll check in a fix forthwith.

-Dave







More information about the Cplusplus-sig mailing list