A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-May/024032.html below:

[Python-Dev] bsddb module and unicode

[Python-Dev] bsddb module and unicode - is it worth it? [Python-Dev] bsddb module and unicode - is it worth it?Martin v. Loewis martin@v.loewis.de
09 May 2002 09:48:12 +0200
Skip Montanaro <skip@pobox.com> writes:

> I just noticed the bsddb module barfs on Unicode objects.  Is it worth
> updating it to handle them transparently?  Or does the "explicit is better
> than implicit" rubric hold here?

bsddb implements a byte-string keys, byte-string values mapping; see

http://www.sleepycat.com/docs/api_cxx/dbt_class.html

If you want anything else (such as text), you'll need to use shelve,
or define your own mapping from bytes to your data types.

Regards,
Martin




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4