39 lines
939 B
Plaintext
39 lines
939 B
Plaintext
From: phd at sun.med.ru (Oleg Broytmann)
|
|
Date: Fri, 9 Apr 1999 10:13:10 GMT
|
|
Subject: simple dbm question
|
|
In-Reply-To: <370D55D9.B75ECE47@hons.cs.usyd.edu.au>
|
|
References: <370D55D9.B75ECE47@hons.cs.usyd.edu.au>
|
|
Message-ID: <Pine.SOL2.3.96.SK.990409141205.6969G-100000@sun.med.ru>
|
|
X-UID: 621
|
|
|
|
On Fri, 9 Apr 1999, Matthew Robert Gallagher wrote:
|
|
> import anydbm
|
|
> file = anydbm.open('hew')
|
|
>
|
|
> error appears as
|
|
> Traceback (innermost last):
|
|
> File "/usr/local/lib/python1.5/anydbm.py", line 54, in open
|
|
> return _mod.open(file, flag, mode)
|
|
> gdbm.error: (2, 'No such file or directory')
|
|
|
|
Is there GDBM database "hew"? If not - you need to create it:
|
|
|
|
import anydbm
|
|
file = anydbm.open('hew', 'w')
|
|
|
|
> thanks
|
|
>
|
|
> hew
|
|
>
|
|
>
|
|
|
|
Oleg.
|
|
----
|
|
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
|
|
Programmers don't die, they just GOSUB without RETURN.
|
|
|
|
|
|
|
|
|
|
|