Tim Peters writes: > Yet another use for a weak reference <0.5 wink>. Those just keep popping up! I seem to recall Diane Hackborne actually implemented these under the name "vref" long ago; perhaps that's worth revisiting after all? (Not the implementation so much as the idea.) I think to make it general would cost one PyObject* in each object's structure, and some code in some constructors (maybe), and all destructors, but not much. Is this worth pursuing, or is it locked out of the core because of the added space for the PyObject*? (Note that the concept isn't necessarily useful for all object types -- numbers in particular -- but it only makes sense to bother if it works for everything, even if it's not very useful in some cases.) -Fred -- Fred L. Drake, Jr. <fdrake@acm.org> Corporation for National Research Initiatives
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