Message407513
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:56 | rhettinger | set | recipients:
+ rhettinger |
2021-12-02 07:06:56 | rhettinger | set | messageid: <1638428816.23.0.206050902249.issue45959@roundup.psfhosted.org> |
2021-12-02 07:06:56 | rhettinger | link | issue45959 messages |
2021-12-02 07:06:56 | rhettinger | create | |
|