This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hagen
Recipients hagen
Date 2008-09-22.10:07:56
SpamBayes Score 3.7494193e-08
Marked as misclassified No
Message-id <1222078079.42.0.696848044955.issue3929@psf.upfronthosting.co.za>
In-reply-to
Content
Opening a dbm database which doesn't exist without a "c" or "n" flag
results in this exception:

>>> import dbm
>>> dbm.open("abc")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/MP.shadow/hagenf/local/src/py3k/Lib/dbm/__init__.py", line
79, in open
    raise error("need 'c' or 'n' flag to open new db")
TypeError: 'tuple' object is not callable

"error" is a tuple of dbm's own exception class and IOError, but this
doesn't seem to make sense in the present code and Python 3.0. The
attached patch fixes the problem and adds a test for the correct
exception being raised.
History
Date User Action Args
2008-09-22 10:07:59hagensetrecipients: + hagen
2008-09-22 10:07:59hagensetmessageid: <1222078079.42.0.696848044955.issue3929@psf.upfronthosting.co.za>
2008-09-22 10:07:57hagenlinkissue3929 messages
2008-09-22 10:07:57hagencreate