No destructor

Ken Kinder kkinder at tridog.com
Mon Aug 21 15:21:33 EDT 2000


Actually, there is a patch for a Python garbage collector:
http://www.enme.ucalgary.ca/~nascheme/python/gc.html

It's not part of the standard Python distribution, but if you apply the patch it
works pretty well. It does break things like

txt = open('foo').read()

Aahz Maruch wrote:

> [BTW, Makhno, please include attributions for quoted posts.  It's
> important to keep track of who said what.]
>
> In article <8nrsnb$h4f$1 at news5.svr.pol.co.uk>,
> Makhno <mak at imakhno.freeserve.co.uk> wrote:
> >
> >This is incorrect. There are destructors, Python would be useless as a
> >garbadge collecting extensible scripting language if it did not have them.
>
> Python is not a "garbage collecting language".  While Python 2.0 will
> have a garbage collector, using it will be strictly optional.  For all
> versions prior to 2.0, it is only correct to say that Python is a
> reference-counting language.
>
> Nevertheless, your basic point was correct.
> --
>                       --- Aahz (Copyright 2000 by aahz at pobox.com)
>
> Androgynous poly kinky vanilla queer het    <*>    http://www.rahul.net/aahz/
> Hugs and backrubs -- I break Rule 6
>
> "A foolish consistency is the hobgoblin of little minds, adored by little
> statesmen and philosophers and divines."  -- Ralph Waldo Emerson
> --
> http://www.python.org/mailman/listinfo/python-list

--
Ken Kinder
Staff Engineer - Tridog Interactive, Inc.
kkinder at tridog.com
http://www.tridog.com/ - 303-415-2538
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kkinder.vcf
Type: text/x-vcard
Size: 257 bytes
Desc: Card for Ken Kinder
URL: <http://mail.python.org/pipermail/python-list/attachments/20000821/23e7ec4e/attachment.vcf>


More information about the Python-list mailing list