Order of constructor/destructor invocation

Brett g Porter BgPorter at NOartlogicSPAM.com
Tue Mar 5 13:52:33 EST 2002


"Justin Sheehy" <justin at iago.org> wrote in message
news:mailman.1015350430.26774.python-list at python.org...
> "Reginald B. Charney" <news at charneyday.com> writes:
>

> Perhaps you are using "destructors" to refer to some concept that is
> different from what the rest of us use that word for?
No, based on what he wants to do (and his observation that Python suffers
from the same 'misdesign' as Java) it's pretty clear that he's using
'destructor' in the C++ sense, since C++ dtors have exactly the behavior
he's looking for.

As someone who needed a year or so to separate the C++ and Python halves of
my brain, I sympathize, and can only urge (as gently as possible) Mr Charney
to think Pythonically , instead of dealing with the frustration of expecting
Python to follow C++'s rules. Down that path lies madness.


--
// Brett g Porter * Lead Engineer, Development Practices
// BgPorter at artlogic.com * www.artlogic.com
// Art & Logic, Inc. * software engineering and design
// Desktop * Embedded * Web





More information about the Python-list mailing list