[Tutor] Re: Threaded persistance?

Gwyn Evans gwyn.evans at gmail.com
Thu Mar 3 12:08:59 CET 2005


On Wed, 2 Mar 2005 21:15:50 +0000, Gwyn Evans <gwyn.evans at gmail.com> wrote:
> On Wed, 2 Mar 2005 20:34:18 +0000, Gwyn Evans <gwyn.evans at gmail.com> wrote:
> > I had a look at using ZODB but hit problems when trying to have two
> > connections to the same FileStorage DB, but a second look at things
> > suggested that dbm might well do what I need, if  I ensure only one
> > thread at a time can access it.
> 
>   When I found I had the same sort of issue with dbm I had a closer
> look and realised that my test code was tidying up too quickly and
> closing the DB before the test had actually finished, so it looks as
> if ZODB's still in the picture!

 I've put the code I've come up with at
http://www.javaguy.co.uk/Python/TestCEH.html but as I'm new to Python,
I'd appreciate any comments, if anyone have time to take a look.

/Gwyn


More information about the Tutor mailing list