annotate Lib/dbhash.py @ 5817:48b94de85bf3 legacy-trunk

Extensive changes by AMK.
author Guido van Rossum <guido@python.org>
date Thu, 17 Jul 1997 16:29:42 +0000
parents 1a17ba50bd68
children 371c312767cc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3357
1a17ba50bd68 backward compatible interface for bsddb
Guido van Rossum <guido@python.org>
parents:
diff changeset
1 """Provide a (g)dbm-compatible interface to bsdhash.hashopen."""
1a17ba50bd68 backward compatible interface for bsddb
Guido van Rossum <guido@python.org>
parents:
diff changeset
2
1a17ba50bd68 backward compatible interface for bsddb
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 import bsddb
1a17ba50bd68 backward compatible interface for bsddb
Guido van Rossum <guido@python.org>
parents:
diff changeset
4
1a17ba50bd68 backward compatible interface for bsddb
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 error = bsddb.error
1a17ba50bd68 backward compatible interface for bsddb
Guido van Rossum <guido@python.org>
parents:
diff changeset
6
1a17ba50bd68 backward compatible interface for bsddb
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 def open(file, flag, mode):
1a17ba50bd68 backward compatible interface for bsddb
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 return bsddb.hashopen(file, flag, mode)