]> granicus.if.org Git - python/commit
dbm.gnu and dbm.ndbm accept both strings and bytes as keys and values. For the
authorBrett Cannon <bcannon@gmail.com>
Tue, 25 Nov 2008 19:19:17 +0000 (19:19 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 25 Nov 2008 19:19:17 +0000 (19:19 +0000)
commit7317c1ef7aaba7deda66b7fa917d09e68d83635b
tree20de56e7bef3651ffbe837660673f76a1b54a1c5
parent50d5a1c37324405104a097389515a0ef4f9705f3
dbm.gnu and dbm.ndbm accept both strings and bytes as keys and values. For the
former they are converted to bytes before being written to the DB.

Closes issue 3799. Reviewed by Skip Montanaro.
Doc/library/dbm.rst
Lib/test/test_dbm_dumb.py
Lib/test/test_dbm_gnu.py
Lib/test/test_dbm_ndbm.py
Misc/NEWS
Modules/_dbmmodule.c
Modules/_gdbmmodule.c