Index: Doc/library/bsddb.rst =================================================================== --- Doc/library/bsddb.rst (revision 66196) +++ Doc/library/bsddb.rst (working copy) @@ -6,7 +6,10 @@ :synopsis: Interface to Berkeley DB database library .. sectionauthor:: Skip Montanaro +.. deprecated:: 2.6 + The :mod:`bsddb` module has been deprecated for removal in Python 3.0. + The :mod:`bsddb` module provides an interface to the Berkeley DB library. Users can create hash, btree or record based library files using the appropriate open call. Bsddb objects behave generally like dictionaries. Keys and values must be Index: Lib/bsddb/__init__.py =================================================================== --- Lib/bsddb/__init__.py (revision 66196) +++ Lib/bsddb/__init__.py (working copy) @@ -42,6 +42,12 @@ import sys absolute_import = (sys.version_info[0] >= 3) +if sys.py3kwarning: + import warnings + warnings.warnpy3k("in 3.x, bsddb has been removed; " + "please use the pybsddb project instead", + DeprecationWarning, 2) + try: if __name__ == 'bsddb3': # import _pybsddb binary as it should be the more recent version from Index: Lib/test/test_py3kwarn.py =================================================================== --- Lib/test/test_py3kwarn.py (revision 66197) +++ Lib/test/test_py3kwarn.py (working copy) @@ -305,7 +305,7 @@ 'sunos5' : ('sunaudiodev', 'SUNAUDIODEV'), } optional_modules = ('bsddb185', 'Canvas', 'dl', 'linuxaudiodev', 'imageop', - 'sv', 'cPickle') + 'sv', 'cPickle', 'bsddb') def check_removal(self, module_name, optional=False): """Make sure the specified module, when imported, raises a