[ZODB-Dev] ZODB: Are all handles closed?

Toby Dickenson tdickenson@geminidataloggers.com
Fri, 7 Mar 2003 18:32:50 +0000


On Friday 07 March 2003 4:48 pm, Christian Reis wrote:
> On Fri, Mar 07, 2003 at 11:31:22AM -0500, Jeremy Hylton wrote:
> > > Both of your scripts have a bug that is causing the problem
> > > demonstrated in the second script. db.open returns a connection object,
> > > and you need to call close on the connection, rather than the db.
> > > db.close is an alias for storage.close.
> >
> > This doesn't make much sense, does it?
>
> No, it doesn't. db.close() should close the storage

Should it? We have to create the storage explicitly, so why shouldnt we have 
to call storage.close explicitly too?

-- 
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson