I pass some weak references from Python to the C ++ class, but C ++ destructors are actively trying to access ref when the real object is already dead, it is obvious that it crashes ...
Is there any Python C / API approach to find out if there is a Python link yet or some other known workaround?
thank
source
share