diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2004-06-28 04:06:49 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2004-06-28 04:06:49 (GMT) |
commit | 19699a93513e5b011170123b0740bd9b7d714a53 (patch) | |
tree | 5df1f7df1da32893c0a7f2e2d3bc49c5bf39779e /Lib/bsddb/dbobj.py | |
parent | 31c50659eaf189e2498558895272053b2f66a25e (diff) | |
download | cpython-19699a93513e5b011170123b0740bd9b7d714a53.zip cpython-19699a93513e5b011170123b0740bd9b7d714a53.tar.gz cpython-19699a93513e5b011170123b0740bd9b7d714a53.tar.bz2 |
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.
Diffstat (limited to 'Lib/bsddb/dbobj.py')
-rw-r--r-- | Lib/bsddb/dbobj.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/bsddb/dbobj.py b/Lib/bsddb/dbobj.py index abda657..3bafafa 100644 --- a/Lib/bsddb/dbobj.py +++ b/Lib/bsddb/dbobj.py @@ -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): |