summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/dbobj.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2003-07-09 04:45:59 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2003-07-09 04:45:59 (GMT)
commit455d46f0d921337405ebd3a098c210f3614ae77c (patch)
treea76c243123743366b91a85ccd060e40d4d8a9a5a /Lib/bsddb/dbobj.py
parentbea57c6c355ba98cd9019d13e5adf7d715377edf (diff)
downloadcpython-455d46f0d921337405ebd3a098c210f3614ae77c.zip
cpython-455d46f0d921337405ebd3a098c210f3614ae77c.tar.gz
cpython-455d46f0d921337405ebd3a098c210f3614ae77c.tar.bz2
bsddb 4.1.6:
* Extended DB & DBEnv set_get_returns_none functionality to take a "level" instead of a boolean flag. The boolean 0 and 1 values still have the same effect. A value of 2 extends the "return None instead of raising an exception" behaviour to the DBCursor set methods. This will become the default behaviour in pybsddb 4.2. * Fixed a typo in DBCursor.join_item method that made it crash instead of returning a value. Obviously nobody uses it. Wrote a test case for join and join_item.
Diffstat (limited to 'Lib/bsddb/dbobj.py')
-rw-r--r--Lib/bsddb/dbobj.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/bsddb/dbobj.py b/Lib/bsddb/dbobj.py
index b2632a1..d23f533 100644
--- a/Lib/bsddb/dbobj.py
+++ b/Lib/bsddb/dbobj.py
@@ -15,6 +15,12 @@
# implied.
#
+#
+# TODO it would be *really nice* to have an automatic shadow class populator
+# so that new methods don't need to be added here manually after being
+# added to _bsddb.c.
+#
+
import db
try:
@@ -57,6 +63,8 @@ class DBEnv:
return apply(self._cobj.set_lk_max_objects, args, kwargs)
def set_mp_mmapsize(self, *args, **kwargs):
return apply(self._cobj.set_mp_mmapsize, args, kwargs)
+ def set_timeout(self, *args, **kwargs):
+ return apply(self._cobj.set_timeout, args, kwargs)
def set_tmp_dir(self, *args, **kwargs):
return apply(self._cobj.set_tmp_dir, args, kwargs)
def txn_begin(self, *args, **kwargs):