Bugs item #1519786, was opened at 2006-07-09 23:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1519786&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Extension Modules Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Martin Kelly (aomighty) Assigned to: Nobody/Anonymous (nobody) Summary: AttributeError in the shelve module Initial Comment: This is Python 2.4.4 on Debian Etch. Look at the following interpreter session: Python 2.4.4c0 (#2, Jun 14 2006, 22:35:41) [GCC 4.1.2 20060613 (prerelease) (Debian 4.1.1-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import shelve >>> import anydbm >>> try: ... shelve.open('nonexistent', 'r') ... except anydbm.error: ... print 'caught it' ... caught it Exception exceptions.AttributeError: "DbfilenameShelf instance has no attribute 'writeback'" in ignored >>> anydbm.error (<class anydbm.error at 0xb7f48bfc>, <class bsddb._db.DBError at 0xb7f5623c>, <class gdbm.error at 0xb7f48cbc>, <class dbm.error at 0xb7f5b38c>, <class exceptions.IOError at 0xb7f774ac>) >>> Shelf.__del__() calls Shelf.close() calls Shelf.sync() which references self.writeback even though that attribute doesn't exist. It also references self.dict which also doesn't exist. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1519786&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com