Q: operation not permitted error...
hwan-jo yu
hwanjoyu at students.uiuc.edu
Sat Jan 6 15:54:42 EST 2001
Hi,
When I try to call keys() function of a shelve, it returns the following
error.
Traceback (most recent call last):
File "size.py", line 6, in ?
k = s.keys()
File "/usr/local/lib/python2.0/shelve.py", line 55, in keys
return self.dict.keys()
bsddb.error: (1, 'Operation not permitted')
### source code ###
import shelve
s = shelve.open("aaa") # 'aaa' is a shelve data file created before
k = s.keys()
print len(k)
What caused this error ?
Thanks
More information about the Python-list
mailing list