mirror of
https://github.com/python/cpython.git
synced 2025-10-27 00:36:52 +00:00
Make bsddb use bytes as keys and values. Add StringKeys
and StringValues classes. Fix test suite.
This commit is contained in:
parent
33d2689fc9
commit
64ce5052e1
4 changed files with 182 additions and 50 deletions
|
|
@ -93,6 +93,17 @@ function. Consult the Berkeley DB documentation for their use and
|
|||
interpretation.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{classdesc}{StringKeys}{db}
|
||||
Wrapper class around a DB object that supports string keys
|
||||
(rather than bytes). All keys are encoded as UTF-8, then passed
|
||||
to the underlying object. \versionadded{3.0}
|
||||
\end{classdesc}
|
||||
|
||||
\begin{classdesc}{StringValues}{db}
|
||||
Wrapper class around a DB object that supports string values
|
||||
(rather than bytes). All values are encoded as UTF-8, then passed
|
||||
to the underlying object. \versionadded{3.0}
|
||||
\end{classdesc}
|
||||
|
||||
\begin{seealso}
|
||||
\seemodule{dbhash}{DBM-style interface to the \module{bsddb}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue