[issue1771381] bsddb can't use unicode keys
Marc-Andre Lemburg added the comment: Unassigning since I don't know the details of bsddb. -- assignee: lemburg - _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1771381 _
[issue1771381] bsddb can't use unicode keys
Gregory P. Smith added the comment: The BerkeleyDB library operates on bytes only. Unicode doesn't make sense as a key without converting it to a particular encoding first. Use the unicode object's encode() method if you need to use it as a database key or create a wrapper object or subclass