I'm trying to use codon to accelerate a python project. But I wonder if there is an alternative of python weakref / C++ weak_ptr for Codon native objects. It's a resource-management components requiring weak ref for: 1. non-owning observer; 2. breaking circular reference.
Does codon support this? In my case, the weak reference is used purely internally, inside the component. And only a few specified classes needs it. In CPython, I enable weakref support by adding __weakref__ into __slots__.