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 rhettinger
Recipients rhettinger
Date 2021-12-02.07:06:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The pprint() code has a number of type or protocol specific handlers but doesn't have one for dict views.  So, we don't get pretty printing for the key(), values(), and items():

d = {i:i for i in range(100)}
pprint(d)             # This is handled correctly
pprint(d.keys())      # Printed on one line
pprint(d.values())    # Printed on one line
pprint(d.items())     # Printed on one line
Date User Action Args
2021-12-02 07:06:56rhettingersetrecipients: + rhettinger
2021-12-02 07:06:56rhettingersetmessageid: <>
2021-12-02 07:06:56rhettingerlinkissue45959 messages
2021-12-02 07:06:56rhettingercreate