A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-February/071411.html below:

[Python-Dev] Class destructor

[Python-Dev] Class destructorNick Maclaren nmm1 at cus.cam.ac.uk
Wed Feb 28 10:00:03 CET 2007
I am gradually making progress with my binary floating-point software,
but have had to rewrite several times as I have forgotten most of the
details of how to do it!  After 30 years, I can't say I am surprised.

But I need to clean up workspace when a class (not object) is
deallocated.  I can't easily use attributes, as people suggested,
because there is no anonymous storage built-in type.  I could subvert
one of the existing storage types (buffer, string etc.), but that is
unclean.  And I could write one, but that is excessive.

So far, I have been unable to track down how to get something called
when a class is destroyed.  The obvious attempts all didn't work, in
a variety of ways.  Surely there must be a method?  This could be in
either Python or C.

Thanks.


Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email:  nmm1 at cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4