Hi. I have read weak ref PEP, maybe too late. I don't know if portability of code using weak refs between python and jython was a goal or could be one, and up to which extent actual impl. will correspond to the PEP. But about The callbacks registered with weak references must accept a single parameter, which will be the weak-ly referenced object itself. The object can be resurrected by creating some other reference to the object in the callback, in which case the weak reference generating the callback will still be cleared but no remaining weak references to the object will be cleared. AFAIK using java weak refs (which I think is a natural choice) I see no way (at least no worth-the-effort way) to implement this in jython. Java weak refs cannot be resurrected. regards, Samuele Pedroni. PS: Mr. X is a jython developer.
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