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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26557>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to