STINNER Victor <victor.stin...@gmail.com> added the comment: Currently, repr(Shelf.keys()) doesn't dump the content of the shelf:
>>> import pickle, shelve >>> s=shelve.Shelf({b'key': pickle.dumps('value')}) >>> k=s.keys() >>> k KeysView(<shelve.Shelf object at 0x7fba1f6189b0>) >>> list(k) ['key'] >>> list(s.values()) ['value'] I understand that changing KeysView.__repr__() changes repr(Shelf.keys()) behaviour. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32300> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com