on a
single line (regardless of the compact parameter), so I don't believe
that was the rationale behind this behaviour.
On 9/11/18 1:05 PM, Max Zettlmeißl wrote:
On Tue, Sep 11, 2018 at 1:58 PM, Nicolas Hug wrote:
pprint({x: x for x in range(15)}, compact=True)
would be be printed i
Is there a reason why the 'compact' parameter is ignored when pretty
printing a dict? For example:
pprint({x: x for x in range(15)}, compact=True)
would be be printed in 15 lines while it could fit on 2.
Is this a bug or was this decided on purpose?
Thank you!
--
https://mail.python.org/mai