summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixes bug #1117761Gregory P. Smith2006-04-121-7/+9
| | | | | | | | | bsddb.*open() methods cachesize parameter wouldn't work (raised an internal bsddb.db exception when it was given). The set_cachesize call needed to be moved from the DB object to the DBEnv since the env was introduced to allow for threading. (will backport to 2.4)
* Closes bug #1149413Gregory P. Smith2006-04-121-1/+1
| | | | | | | Using None for a filename with the 'n' flag when calling bsddb.btopen would cause an error while checking if the file None existed. error not likely to be seen as anyone using None for a filename would likely use the 'c' flag in the first place.
* Whitespace normalization.Tim Peters2006-02-201-1/+1
|
* Bug #1210377: close bsddb cursor correctly after NotFoundError.Georg Brandl2006-02-201-1/+4
|
* Add a unit test for bug fix #1396678.Georg Brandl2006-02-191-4/+3
|
* Bug #1396678: a closed bsddb.DB raises AttributeError on repr().Georg Brandl2006-02-191-1/+4
| | | | It now returns "{}". Is that the correct solution?
* Get BSD DB working most for version 3.2Neal Norwitz2005-10-201-0/+2
|
* Patch #1112812: Make bsddb/__init__.py more friendly for modulefinder.Martin v. Löwis2005-03-031-2/+2
| | | | Backported to 2.4.
* Fix SF bug # 897820 - we can no longer use the DB_TRUNCATE flag whenGregory P. Smith2004-06-271-6/+11
| | | | | | opening the DB to implement legacy interface flag='n' support as BerkeleyDB 4.2.52 no longer allows it in transaction protected environments. Do the os.unlink ourselves.
* Fixes SF bug # 778421Gregory P. Smith2004-02-261-1/+1
| | | | | | | | | * Fixed a bug in the compatibility interface set_location() method where it would not properly search to the next nearest key when used on BTree databases. [SF bug id 788421] * Fixed a bug in the compatibility interface set_location() method where it could crash when looking up keys in a hash or recno format database due to an incorrect free().
* __init__.py: keep it compatible with older python (True and False == 1 and 0)Gregory P. Smith2004-01-131-2/+2
| | | | test_basics.py: updated for the set_get_returns_none() default of 2 change.
* * Use weakref's of DBCursor objects for the iterator cursors to avoid aGregory P. Smith2003-11-031-47/+45
| | | | | | | | | | memory leak that would've occurred for all iterators that were destroyed before having iterated until they raised StopIteration. * Simplify some code. * Add new test cases to check for the memleak and ensure that mixing iteration with modification of the values for existing keys works.
* * Fix the singlethreaded deadlocks occurring in the simple bsddb interface.Gregory P. Smith2003-11-021-7/+102
| | | | | * Add support for multiple iterator/generator objects at once on the simple bsddb _DBWithCursor interface.
* Use a threadsafe private DBEnv for each bsddb compatibility interfaceGregory P. Smith2003-09-271-3/+10
| | | | | | | db that is opened. DB_THREAD and DB_INIT_LOCK allow for multithreaded access. DB_PRIVATE prevents the DBEnv from using the filesystem (making it only usable by this process; and in this implementation using one DBEnv per bsddb database)
* Adds basic support for BerkeleyDB 4.2.x. Compiles and passes tests; newGregory P. Smith2003-09-211-2/+9
| | | | | | | | | | features in BerkeleyDB not exposed. notably: the DB_MPOOLFILE interface has not yet been wrapped in an object. Adds support for building and installing bsddb3 in python2.3 that has an older version of this module installed as bsddb without conflicts. The pybsddb.sf.net build/packaged version of the module uses a dynamicly loadable module called _pybsddb rather than _bsddb.
* Maintain backwards compatibility with python < 2.3 by dynamicallyGregory P. Smith2003-09-201-18/+30
| | | | adding the iterator interface for python >= 2.3.
* The previous change works much faster (one lookup per key) whenRaymond Hettinger2003-09-131-0/+9
| | | | iteritems() is defined.
* SF #662923Raymond Hettinger2003-09-121-1/+10
| | | | | | Add support for the iterator and mapping protocols. For Py2.3, this was done for shelve, dumbdbm and other mapping objects, but not for bsddb and dbhash which were inadvertently missed.
* Whitespace normalization.Tim Peters2003-04-241-1/+1
|
* Everything worked in both the distutils distro and in Python 2.3cvs,Barry Warsaw2003-01-281-16/+16
| | | | so merge from the bsddb-bsddb3-schizo-branch back to the trunk.
* Port BerkeleyDB 4.1 support from the pybsddb project. bsddb is now atBarry Warsaw2002-12-301-9/+2
| | | | version 4.1.1 and works with up to BerkeleyDB 4.1.25.
* Delete bsddb from sys.modules if _bsddb cannot be imported.Martin v. Löwis2002-11-241-1/+8
|
* Import PyBSDDB 3.4.0. Rename historical wrapper to bsddb185.Martin v. Löwis2002-11-191-0/+237