[issue1233] bsddb.dbshelve.DbShelf.append doesn't work

Steven Vereecken report at bugs.python.org
Wed Oct 3 18:45:21 CEST 2007


New submission from Steven Vereecken:

The check for DB_RECNO seems to do the opposite of what it's supposed to do:

    def append(self, value, txn=None):
        if self.get_type() != db.DB_RECNO:
            self.append = self.__append
            return self.append(value, txn=txn)
        raise db.DBError, "append() only supported when dbshelve opened
with filetype=dbshelve.db.DB_RECNO"

----------
components: Library (Lib)
messages: 56219
nosy: polaar
severity: normal
status: open
title: bsddb.dbshelve.DbShelf.append doesn't work
type: behavior
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1233>
__________________________________


More information about the Python-bugs-list mailing list