Garbage collector and threads

Michael Hudson mwh at
Mon Mar 1 18:22:54 CET 2004

aahz at (Aahz) writes:

> In article <1EJ0c.4334$mx4.105438 at>,
> Nicolas Fleury  <nid_oizo at yahoo.com_remove_the_> wrote:
> >Aahz wrote:
> >>
> >> Yes, Don't Do That.  Do not rely on finalizers for external resources
> >> (such as threads).
> >
> >Why?  Isn't a kind of RAII applied to Python?
> What's "RAII"?

Resource Aquisition Is Initialization.  Works in C++.  Doesn't really
in Python.


  Need to Know is usually an interesting UK digest of things that
  happened last week or might happen next week. [...] This week,
  nothing happened, and we don't care.
                           -- NTK Now, 2000-12-29,

More information about the Python-list mailing list