Closed nirvinehh closed 10 years ago
I think this method should be __delitem__(_id) on Database. __del__ gets called on garbage collection:
__delitem__(_id)
Database
__del__
>>> class Foo(object): ... def __del__(self): ... print '__del__' ... >>> def make_foo(): ... f = Foo() ... >>> make_foo() __del__
The tests pass because __del__ represses exceptions.
Oh jeez, good point. Will fix.
Fixed here: 04609664e32f330a781bfb7a11a198f66980e30a
Thanks for raising the issue!
I think this method should be
__delitem__(_id)
onDatabase
.__del__
gets called on garbage collection:The tests pass because
__del__
represses exceptions.