[Patches] [ python-Patches-553108 ] Deprecate bsddb
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 16 May 2002 16:10:56 -0700
Patches item #553108, was opened at 2002-05-06 20:46
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=553108&group_id=5470
Category: Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Garth T Kidd (gtk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Deprecate bsddb
Initial Comment:
Large numbers of inserts break bsddb, as first
discovered in Python 1.5 (bug 408271).
According to Barry Warsaw, "trying to get the bsddb
module that comes with Python to work is a hopeless
cause."
If it's broken, let's discourage people from using it.
In particular, let's ensure that people importing
shelve or anydbm don't end up using it by default.
The submitted patch adds a DeprecationWarning to the
bsddb module and removes bsddb from the list of db
module candidates in anydbm.
----------------------------------------------------------------------
Comment By: Martin D Katz, Ph.D. (drbits)
Date: 2002-05-16 16:10
Message:
Logged In: YES
user_id=276840
I am not sure there is a reason to deprecate bsddb. The
btopen format appears to be stable enough for normal work.
Maybe 2.3 should change dbhash to use btopen?
----------------------------------------------------------------------
Comment By: Garth T Kidd (gtk)
Date: 2002-05-08 20:12
Message:
Logged In: YES
user_id=59803
Let's not turn a simple patch into something requiring a
PEP, compulsory thrashing on comp.lang.python, SleepyCat
being willing to change their distribution model, lawyers
(to make sure the licences are compatible), and so on.
I'd hate it if other people spent the kind of time I did
trying to get shelve to work only to find that a known-
broken bsddb was causing all the problems, and that a patch
was there to gently guide them to gdbm, but it got jammed
because of scope-creep.
Let's get this one, very simple and necessary (bsddb IS
broken) change out of the way, and THEN start negotiating,
thrashing, and integrating. :)
I firmly believe bsddb3 should be one of the included
batteries. Let's do it, but let's guide people away from
broken code first.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-05-08 02:01
Message:
Logged In: YES
user_id=21627
I'm in favour of this change, but I'd like simultaneously
incorporate bsddb3.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=553108&group_id=5470