5 ms·
Could you name it?
by nashequilibrium 11y ago
Could you name it?
- vram22 11y agoThis 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.
- nashequilibrium 11y agoAhhh... Thanks, never knew that!
- alelos 11y agobsddb is deprecated as of python 2.6 and removed in python 3
- teraflop 11y agoThat 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.
- jgalt212 11y agoalso, no unicode keys for this or shelve in 2.7 which really causes some coding pain. (not sure about 3.X)
- GFK_of_xmaspast 11y agodict
- Wicher 11y agoshelve: https://docs.python.org/3.4/library/shelve.html https://docs.python.org/3.4/library/shelve.html
- njharman 11y agodict type stdlib have various ways to persist, if needed.