[New-bugs-announce] [issue26557] dictviews methods not present on shelve objects

Michael Crouch report at bugs.python.org
Mon Mar 14 07:19:00 EDT 2016


New submission from Michael Crouch:

Shelve types in Python 2.7 don't implement the 'viewkeys', 'viewvalues', and 'viewitems' methods.

Section 11.4 of the Python Standard Library documentation says that "Shelf objects support all methods supported by dictionaries." If those methods can't be added to shelves, the documentation should be clarified.

The use case for this was that I wanted an iterator on a shelf that didn't try to materialize the entire list (since the shelf is very large and I'd prefer to leave most of it on disk).

----------
components: Library (Lib)
messages: 261744
nosy: Michael Crouch
priority: normal
severity: normal
status: open
title: dictviews methods not present on shelve objects
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26557>
_______________________________________


More information about the New-bugs-announce mailing list