bsddb module updated to version 4.7.2devel9.
This patch publishes the work done until now
for Python 3.0 compatibility. Still a lot
to be done.
When possible, we use 3.0 features in Python 2.6,
easing development and testing, and exposing internal
changes to a wider audience, for better test coverage.
Some mode details:
http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.2
diff --git a/Modules/bsddb.h b/Modules/bsddb.h
index 8d3e1d6..a4f6db7 100644
--- a/Modules/bsddb.h
+++ b/Modules/bsddb.h
@@ -105,7 +105,7 @@
#error "eek! DBVER can't handle minor versions > 9"
#endif
-#define PY_BSDDB_VERSION "4.7.0"
+#define PY_BSDDB_VERSION "4.7.2devel9"
/* Python object definitions */
@@ -131,11 +131,11 @@
u_int32_t flags; /* saved flags from open() */
int closed;
struct behaviourFlags moduleFlags;
-#if (DBVER >= 40)
PyObject* event_notifyCallback;
-#endif
struct DBObject *children_dbs;
struct DBTxnObject *children_txns;
+ PyObject *private;
+ PyObject *rep_transport;
PyObject *in_weakreflist; /* List of weak references */
} DBEnvObject;
@@ -156,11 +156,10 @@
struct DBObject *sibling_next;
struct DBObject **sibling_prev_p_txn;
struct DBObject *sibling_next_txn;
-#if (DBVER >= 33)
PyObject* associateCallback;
PyObject* btCompareCallback;
int primaryDBType;
-#endif
+ PyObject *private;
PyObject *in_weakreflist; /* List of weak references */
} DBObject;