Message308314
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. |
|
Date |
User |
Action |
Args |
2017-12-14 16:28:40 | vstinner | set | recipients:
+ vstinner, rhettinger, r.david.murray, Aaron.Meurer, serhiy.storchaka, cheryl.sabella |
2017-12-14 16:28:40 | vstinner | set | messageid: <1513268920.77.0.213398074469.issue32300@psf.upfronthosting.co.za> |
2017-12-14 16:28:40 | vstinner | link | issue32300 messages |
2017-12-14 16:28:40 | vstinner | create | |
|