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/1999-August/000766.html below:

[Python-Dev] Quick-and-dirty weak references

[Python-Dev] Quick-and-dirty weak references [Python-Dev] Quick-and-dirty weak referencesGuido van Rossum guido@CNRI.Reston.VA.US
Fri, 20 Aug 1999 11:09:32 -0400
> In reply to no one in particular:
> 
>  I've often wished that the instance type object had an (optimized) 
> __decref__ slot. With nothing but hand-waving to support it, I'll 
> claim that would enable all these games.

Without context, I don't know when this would be called.  If you want
this called on all DECREFs (regardless of the refcount value), realize
that this is a huge slowdown because it would mean the DECREF macro
has to inspect the type object, which means several indirections.
This would slow down *every* DECREF operation, not just those on
instances with a __decref__ slot, because the DECREF macro doesn't
know the type of the object!

--Guido van Rossum (home page: http://www.python.org/~guido/)



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