Chris S wrote at 2006-7-26 16:03 -0400:
...
When a file containing source code is modified, I want to reload it
using Python's reload() function, then update classes with the new
definitions. I have application-level logic to ensure the objects are
in a sane-state during update. The only problem
Matt Cowles has a DNS cache module with a patch for use with SpamBayes. It
doesn't persist the data (just caches during the lifetime of the run). I'm
trying to add persistence to that cache and wanting to use the same database
as the user selects for the main SpamBayes database, my first two
Since your exception is happening during __del__ and since AFAIK no
guarantees are made as to what will exist is sys.modules during any
given object's __del__, it's maybe not suprising that you're getting
this exception. I don't know that this has anything to do with ZODB
in particular.
[EMAIL PROTECTED] wrote at 2006-7-29 08:40 -0500:
...
When the cache is deleted, its __del__ method calls
self.close()
which calls self._zodb_close():
def _zodb_close(self):
# Ensure that the db is saved before closing. Alternatively, we
# could abort any waiting