[Python-bugs-list] anydbm can't handle dumbdbm (PR#200)

aa8vb@yahoo.com aa8vb@yahoo.com
Wed, 9 Feb 2000 13:06:03 -0500 (EST)


Full_Name: Randall Hopper
Version: 1.5.2
OS: IRIX 6.5
Submission from: ralph.rtpnc.epa.gov (134.67.66.44)


Basically, anydbm won't open dumbdbm files that anydbm created.

   >>> import anydbm
   >>> db = anydbm.open( "database", "c" )
   >>> db[ "1" ] = "one"
   >>> db.close()
   >>> db = anydbm.open( "database", "r" )
   Traceback (innermost last):
     File "<stdin>", line 1, in ?
     File "/home/rhh/software/python-1.5.2/lib/python1.5/anydbm.py", line 80,
in
 open
       raise error, "need 'c' or 'n' flag to open new db"
   anydbm.error: need 'c' or 'n' flag to open new db

More details can be found in the c.l.python thread "anydbm - a simple
question".

I searched for a matching bug and didn't find one in the database.  Also,
I verified my whichdb.py matches what's currently in CVS, so I don't think
this has been fixed yet.

Thanks,

Randall