We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
https://bugs.python.org/issue33106
Sorry, something went wrong.
Something weird is on Mac the manual tells:
The dbm_delete(db, key) function deletes the entry for key. The dbm_delete() function normally returns zero but returns 1 if there was no entry with key in the database or returns -1 and sets errno if there were any errors.
But it seems not right:
Python 3.6.4 (default, Mar 9 2018, 23:15:03) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import dbm.ndbm >>> f = dbm.ndbm.open('abc', 'c') >>> f[b'key'] = b'value' >>> f.close() >>> f = dbm.ndbm.open('abc', 'w') >>> del f[b'not exist'] Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyError: b'not exist'
http://pubs.opengroup.org/onlinepubs/009695399/functions/dbm_delete.html
bpo-35062: Fix parsing _io.IncrementalNewlineDecoder's *translate* ar…
b137cba
…gument. _io.IncrementalNewlineDecoder's initializer possibly assigns out-of-range value to the bitwise struct field.
Merge remote-tracking branch 'upstream/master'
33f4a65
bpo-33106: change dbm key deletion error for readonly file from KeyEr…
ca2c1c7
…ror to dbm.error
byte -> bytes
2ce82aa
add doc and change dbm.dumb
3f82643
change rst
3749226
8202ddb
4fb0b8b
@zhangyangyu: Please replace # with GH- in the commit message next time. Thanks!
#
GH-
serhiy-storchaka serhiy-storchaka approved these changes
Successfully merging this pull request may close these issues.