Author xtreak
Recipients Nicolas Hug, xtreak
Date 2018-09-25.17:38:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Thanks for the report Nicolas. I looked into the code and it seems that pprint for a dictionary now doesn't really take compact into account. List, sets, tuple and dequeue use _format_items [0] that honors value of compact but dictionary formatting uses _format_dict_items [1] that doesn't without using compact value. Unfortunately, I don't have any links over why dictionary doesn't take compact into account. I would suggest python-ideas [3] to get more feedback about formatting and implementation along with backwards compatibility so that you can proceed further. Your suggestion seems reasonable to me but I don't know if some program is using compact=True for a dictionary without knowing the internals in mind that might break for them. I would wait for others thoughts on this and I think this can be done only on 3.8 and not 3.7 which is in bug fix mode.


Hope this helps!
Date User Action Args
2018-09-25 17:38:30xtreaksetrecipients: + xtreak, Nicolas Hug
2018-09-25 17:38:30xtreaksetmessageid: <>
2018-09-25 17:38:30xtreaklinkissue34798 messages
2018-09-25 17:38:30xtreakcreate