
July 28, 2021
2:15 a.m.
Looks like a separate issue to me. That issue can be fixed by updating the Python implementation of WeakKeyDictioary. The fix for the WeakKeyDictionary issue I mentioned and the Ephemeron primitive (as Sebastian identified it) are equivalant (you can implement one from the other) and cannot be reduced to any existing primitive as far as I can tell. Such a change would need to happen within the Python engine itself.