Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Could you name it?


This is probably what he meant:

$ py

Python 2.7.8 |Anaconda 2.1.0 (64-bit) ... on win32

>>> import bsddb

>>> print bsddb.__doc__

Support for Berkeley DB 4.3 through 5.3 with a simple interface.

For the full featured object oriented interface use the bsddb.db module instead. It mirrors the Oracle Berkeley DB C API.


bsddb is deprecated as of python 2.6 and removed in python 3


That particular back-end is deprecated, but the same API is provided by the dbm/gdbm/dumbdbm modules. Those still exist in Python 3, although they've been consolidated under one top-level module.


also, no unicode keys for this or shelve in 2.7 which really causes some coding pain. (not sure about 3.X)


Ahhh... Thanks, never knew that!



dict


dict type

stdlib have various ways to persist, if needed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: