I just had this problem which would have been elegantly solved with the ability to manually clear weak references pointing to an object. I am (for technical reasons) recycling an object, so instead of killing it and re-creating it, I re-initialize it. But that leaves old weak references in place. How nice wouldn’t it be to be able to call “myobject.clear_weakrefs()”?
|Kristján Valur on Surprising Python|
|Israel Fruchter on Surprising Python|
|Kristján Valur on Atomic|
|Nick Coghlan (@ncogh… on Atomic|
|Kristján Valur on Blog moved|