Re: dbm.open Blind?
Jack Jansen (Jack.Jansen@cwi.nl)
Wed, 30 Mar 1994 15:32:04 +0200
Recently, friedric@rose.rsoc.rockwell.com (Robin Friedrich) said:
> I tried to open a new database file and got the following:
>
> >>> import dbm
> >>> x = dbm.open('XXX','rw',0644)
> >>> len(x)
> 0
> >>>
> darwin 5 % ll
> total 44
> drwxr-xr-x 2 friedric 512 Mar 30 07:15 ./
> drwxr-xr-x 7 friedric 1024 Mar 29 17:14 ../
> -rw-r--r-- 1 friedric 4096 Mar 29 17:14 Notebase.dir
> -rw-r--r-- 1 friedric 16384 Mar 29 17:14 Notebase.pag
> -rw-r--r-- 1 friedric 16384 Mar 30 07:15 XXX.db
> ...
> This is getting spooky.
No, not at all! You're somehow using a different dbm module (the .db
extension clearly shows that). Maybe this is the dbhash module you
mention? I haven't used it so I don't really know what it is....)
--
Jack Jansen | If I can't dance I don't want to be part of
Jack.Jansen@cwi.nl | your revolution -- Emma Goldman
uunet!cwi.nl!jack G=Jack;S=Jansen;O=cwi;PRMD=surf;ADMD=400net;C=nl