[issue2159] dbmmodule inquiry function is performance prohibitive
Eric Olson
report at bugs.python.org
Tue Apr 15 20:54:18 CEST 2014
Eric Olson added the comment:
Uploading patch with minor test changes (dbm_bool_b.patch).
Backwards compatibility note:
Result of running bool(db) on a db that has been closed:
Old: _dbm.error: DBM object has already been closed
With patch: returns False instead of raising.
I think this is desireable, but we could have bool(db) raise an exception when the db is closed if that is preferred for backwards compatibility.
----------
Added file: http://bugs.python.org/file34886/dbm_bool_b.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2159>
_______________________________________
More information about the Python-bugs-list
mailing list