summaryrefslogtreecommitdiffstats
path: root/Lib/dbhash.py
blob: 7aec772c879fa8e5d9d7783a0c65b0678cd3b660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Provide a (g)dbm-compatible interface to bsdhash.hashopen."""

import sys
try:
    import bsddb
except ImportError:
    # prevent a second import of this module from spuriously succeeding
    del sys.modules[__name__]
    raise

__all__ = ["error","open"]

error = bsddb.error                     # Exported for anydbm

def open(file, flag = 'r', mode=0666):
    return bsddb.hashopen(file, flag, mode)
with_subfiling_vfd'>inactive/selection_io_with_subfiling_vfd Mirror from: https://github.com/HDFGroup/hdf5.git
summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorJohn Mainzer <mainzer@hdfgroup.org>2006-01-31 21:09:37 (GMT)
committerJohn Mainzer <mainzer@hdfgroup.org>2006-01-31 21:09:37 (GMT)
commit42d4edcb4a531ab7d890e1e74c92191477697f4c (patch)
tree92e93d1317bc22715e6ef6c868fea563dd530dc7 /testpar
parentfa00ad762d9241cca65bc205e902bb2dd408abe0 (diff)
downloadhdf5-42d4edcb4a531ab7d890e1e74c92191477697f4c.zip
hdf5-42d4edcb4a531ab7d890e1e74c92191477697f4c.tar.gz
hdf5-42d4edcb4a531ab7d890e1e74c92191477697f4c.tar.bz2
[svn-r11915] Purpose:
Attempt to ensure that the parallel cache test runs at a reasonable speed with large numbers of processors. Description: In some cases, the number of random locks and unlocks was a multiple of the MPI rank. Solution: Use rank % 4 instead of simply rank. Platforms tested: copper Misc. update:
Diffstat (limited to 'testpar')