Exceptions and Object Destruction (was: Problem with apsw and garbage collection)

Piet van Oostrum piet at cs.uu.nl
Thu Jun 18 08:08:23 EDT 2009

>>>>> Charles Yeomans <charles at declareSub.com> (CY) wrote:

>CY> Memory management may be an "implementation detail", but it is
>CY> unfortunately one that illustrates the so-called law of leaky
>CY> abstractions.  So I think that one has to write code that follows the
>CY> memory management scheme of whatever language one uses.   For code  written
>CY> for CPython only, as mine is, RAII is an appropriate idiom and  not kludgy
>CY> at all.  Under your assumptions, its use would be wrong, of  course.

I dare to say that, even in CPython it is doomed to disappear, but we
don't know yet on what timescale.
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org

More information about the Python-list mailing list