Documentation
|
# Storing a non-string key or value will raise an exception (most |
|
# likely a TypeError). |
|
db['www.yahoo.com'] = 4 |
Is not correct since sqlite is default backend. int will be silently stored and those who rely on dbm to validate the value are in trouble.
Linked PRs
Documentation
cpython/Doc/library/dbm.rst
Lines 132 to 134 in 9558d22
Is not correct since sqlite is default backend.
intwill be silently stored and those who rely ondbmto validate the value are in trouble.Linked PRs