[issue3799] Byte/string inconsistencies between different dbm modules

Brett Cannon report at bugs.python.org
Thu Nov 20 00:52:12 CET 2008


Brett Cannon <brett at python.org> added the comment:

OK, now I see why it is called 'dumb'; the thing literally just dumps
out the repr of two strings on each line for key/value pairs. To read it
just evals each line in the string. And whichdb detects this format by
looking for ' or " as the first character since that is what the repr
for str is. And that is why the Latin-1 decoding was used; it has the
proper repr for write-out.

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


More information about the Python-bugs-list mailing list