The right way to 'call' a class attribute inside the same class

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Dec 13 01:14:30 EST 2016


Ned Batchelder wrote:
> if a C++ constructor raises an exception, will the corresponding destructor
> be run, or not? (No, because it never finished making an object of type T.)

So it just leaks any memory that's been allocated by
the partially-run constructor?

-- 
Greg


More information about the Python-list mailing list