[ZODB-Dev] Closing ZODB connection

Christian Robottom Reis kiko at async.com.br
Wed Oct 29 11:18:30 EST 2003


On Wed, Oct 29, 2003 at 05:05:40PM +0100, Antonio Beamud Montero wrote:
>     def get_reg_list(self):
>         con = self.db.open()
>         root = con.root()
>         list = root['status'].get_register_list()
>         con.close()
>         return list

a. Don't clobber list() with the local name 'list'

b. In my recollection, if your list contains Persistent objects, you
   may have surprising results while trying to access or modify them.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331



More information about the ZODB-Dev mailing list