This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Aaron.Meurer
Recipients Aaron.Meurer, cheryl.sabella, r.david.murray, rhettinger, serhiy.storchaka, vstinner
Date 2017-12-14.20:37:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513283877.69.0.213398074469.issue32300@psf.upfronthosting.co.za>
In-reply-to
Content
Serhiy, isn't option 4?

4. Make KeysView.__repr__ show list(self). Add a custom wrapper for Shelf's KeysView so that it doesn't do this. 

This seems to be what Victor is suggesting. It makes the most sense to me for the common (i.e., default) case to be to show the keys (and just the keys), and for use cases that want otherwise to subclass and modify.
History
Date User Action Args
2017-12-14 20:37:57Aaron.Meurersetrecipients: + Aaron.Meurer, rhettinger, vstinner, r.david.murray, serhiy.storchaka, cheryl.sabella
2017-12-14 20:37:57Aaron.Meurersetmessageid: <1513283877.69.0.213398074469.issue32300@psf.upfronthosting.co.za>
2017-12-14 20:37:57Aaron.Meurerlinkissue32300 messages
2017-12-14 20:37:57Aaron.Meurercreate