mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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
This commit is contained in:
parent
30e208d525
commit
c5a11fabdb
16 changed files with 1395 additions and 752 deletions
1485
Modules/_bsddb.c
1485
Modules/_bsddb.c
File diff suppressed because it is too large
Load diff
|
|
@ -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 @@ typedef struct {
|
|||
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 @@ typedef struct DBObject {
|
|||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue