__storm_remove__ should be called when an object is removed from a store
Bug #252405 reported by
Jamu Kakar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have a problem that is handled well with reference counting. When
an object is created it increments a reference count and when it's
removed it decrement the reference count. Having __storm_remove__
would be a nice way to deal with the decrement part of this problem.
To post a comment you must log in.
Hey Jamu!
What are the exact semantics you'd expect for the method?
If the method is called when the object is removed from the Store, I'm ).remove( ) is used). If the
afraid people might use it in place of triggers, which is dangerous
considering that this "trigger" only is called when the object is effectively
in memory (e.g., and not when store.find(
method is called when the object is deallocated, then wouldn't __del__
be more appropriate?