[issue43443] Should shelve support dict union?
Serhiy Storchaka
report at bugs.python.org
Tue Mar 9 04:49:39 EST 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
The comment is outdated. Shelf objects also do not support methods copy and fromkey. Creating a new Shelve object without specifying a new underlying database object does not make much sense.
Maybe say that they implement the MutableMapping interface?
>>> sorted(set(dir(dict)) - set(dir(shelve.Shelf)))
['__ior__', '__or__', '__ror__', 'copy', 'fromkeys']
>>> sorted(set(dir(collections.abc.MutableMapping)) - set(dir(shelve.Shelf)))
[]
----------
nosy: +rhettinger, serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43443>
_______________________________________
More information about the Python-bugs-list
mailing list