[ python-Bugs-1519786 ] AttributeError in the shelve module
SourceForge.net
noreply at sourceforge.net
Mon Jul 10 08:50:50 CEST 2006
Bugs item #1519786, was opened at 2006-07-10 06:25
Message generated for change (Comment added) made by gbrandl
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: Closed
>Resolution: Out of Date
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.
----------------------------------------------------------------------
>Comment By: Georg Brandl (gbrandl)
Date: 2006-07-10 06:50
Message:
Logged In: YES
user_id=849994
Thanks for reporting. This was already fixed in SVN head.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1519786&group_id=5470
More information about the Python-bugs-list
mailing list