[issue19287] __contains__() of dbm.ndbm databases fails with str
Berker Peksag
report at bugs.python.org
Sat Oct 19 13:16:17 CEST 2013
Berker Peksag added the comment:
> What about dbm.dumb?
dbm.dumb works fine with str:
$ python3.3 -c 'from dbm import dumb; db=dumb.open("/tmp/db2", "c"); db["key"]="value"; print(b"key" in db); print("key" in db)'
True
True
$ ./python -c 'from dbm import dumb; db=dumb.open("/tmp/db2", "c"); db["key"]="value"; print(b"key" in db); print("key" in db)'
True
True
http://hg.python.org/cpython/file/47618b00405b/Lib/dbm/dumb.py#l217
----------
nosy: +berker.peksag
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19287>
_______________________________________
More information about the Python-bugs-list
mailing list