From: han.holl at pobox.com (Han Holl)
Date: 9 Apr 1999 18:38:32 GMT
Subject: simple dbm question
References: <370D55D9.B75ECE47@hons.cs.usyd.edu.au> <Pine.SOL2.3.96.SK.990409141205.6969G-100000@sun.med.ru>
Message-ID: <370E4927.B5E03D52@pobox.com>
X-UID: 836                                                  

> 
>    Is there GDBM database "hew"? If not - you need to create it:
> 
> import anydbm
> file = anydbm.open('hew', 'w')
> 

Actually, it should be:
   file = anydbm.open('hew', 'c')

'w' is for read/write an _existing_ database.

(Of course, for ordinary file open, you need 'w'! )

Han




