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 tmiasko
Recipients tmiasko
Date 2017-10-25.10:25:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1508927118.96.0.213398074469.issue31868@psf.upfronthosting.co.za>
In-reply-to
Content
Using ndb.ndbm get when key is missing and default value has to be returned
results in invocation of Py_INCREF on null pointer. Test case to reproduce the issue:

```
import dbm.ndbm

with dbm.ndbm.open('db', 'n') as db:
    print(db.get('missing-key'))
```
History
Date User Action Args
2017-10-25 10:25:19tmiaskosetrecipients: + tmiasko
2017-10-25 10:25:18tmiaskosetmessageid: <1508927118.96.0.213398074469.issue31868@psf.upfronthosting.co.za>
2017-10-25 10:25:18tmiaskolinkissue31868 messages
2017-10-25 10:25:18tmiaskocreate