Author sam-s
Recipients sam-s
Date 2018-07-27.13:33:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532698438.31.0.56676864532.issue34248@psf.upfronthosting.co.za>
In-reply-to
Content
`dbm` errors should contain file names when appropriate, just like `OSError`.
E.g.:
```
>>> open("fooooo")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'fooooo'
>>> import dbm.gnu
>>> dbm.gnu.open("fooooo")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_gdbm.error: [Errno 2] No such file or directory
```
the `_gdbm.error` should report the file name `'fooooo'` just like `FileNotFoundError` does (and `exn.args` should contain the file name too!)
History
Date User Action Args
2018-07-27 13:33:58sam-ssetrecipients: + sam-s
2018-07-27 13:33:58sam-ssetmessageid: <1532698438.31.0.56676864532.issue34248@psf.upfronthosting.co.za>
2018-07-27 13:33:58sam-slinkissue34248 messages
2018-07-27 13:33:58sam-screate