mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Adds support for DB.pget and DBCursor.pget methods.
Based on a patch supplied by Ian Ward <ian@arevco.ca> on the pybsddb mailing list 2004-03-26.
This commit is contained in:
parent
31c50659ea
commit
19699a9351
3 changed files with 225 additions and 3 deletions
|
@ -134,6 +134,8 @@ class DB(DictMixin):
|
|||
return apply(self._cobj.fd, args, kwargs)
|
||||
def get(self, *args, **kwargs):
|
||||
return apply(self._cobj.get, args, kwargs)
|
||||
def pget(self, *args, **kwargs):
|
||||
return apply(self._cobj.pget, args, kwargs)
|
||||
def get_both(self, *args, **kwargs):
|
||||
return apply(self._cobj.get_both, args, kwargs)
|
||||
def get_byteswapped(self, *args, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue