We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>>> import semidbm >>> db = semidbm.open('test', 'n') >>> del db[b'nonexistent'] Traceback [...] KeyError: b'nonexistent' >>> db[b'foo'] = b'bar' >>> db[b'foo'] b'exi' >>> db.close() >>> db = semidbm.open('test', 'r') Traceback [...] KeyError: b'nonexistent'
The fix is probably to move the del above the write in _SemiDBM.__delitem__ (and add a regression test).
del
write
_SemiDBM.__delitem__
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The fix is probably to move the
del
above thewrite
in_SemiDBM.__delitem__
(and add a regression test).The text was updated successfully, but these errors were encountered: