[issue23174] shelve.open fails with error "anydbm.error: db type could not be determined"

Karl Richter report at bugs.python.org
Sat Feb 7 14:58:17 CET 2015


Karl Richter added the comment:

After checking the code, I think that it'd make more sense to document `whichdb.py`. It needs to be enhanced with references to criteria for the determination of the database type. Currently there're only function comments and the fact that some variables are named magic speaks for itself, i.e. it's ok for the implementation of the module to be a black box, but the requirements for the input, i.e. the potential database file, which is per se not part of the black box, needs to be specified. Then just link that in the `shelve` docs stating that `shelve.open` is basically a wrapper around `whichdb`.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23174>
_______________________________________


More information about the Python-bugs-list mailing list