You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since there is no concept of a finalizer in Javascript, there is no way to decrement the Python object's reference count when it goes out of Javascript scope or is collected by the gc.
One solution is to add such a feature to Javascript (lol).
Another might be to pass weak references to Javascript and just let Python deal with lifetimes alone, and accessing a dead object from Javascript would raise an exception.
The text was updated successfully, but these errors were encountered:
Since there is no concept of a finalizer in Javascript, there is no way to decrement the Python object's reference count when it goes out of Javascript scope or is collected by the gc.
One solution is to add such a feature to Javascript (lol).
Another might be to pass weak references to Javascript and just let Python deal with lifetimes alone, and accessing a dead object from Javascript would raise an exception.
The text was updated successfully, but these errors were encountered: