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 eric.smith
Recipients LewisGaul, eric.smith, eric.snow, rhettinger, serhiy.storchaka
Date 2021-01-31.18:27:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612117630.5.0.405211576036.issue43080@roundup.psfhosted.org>
In-reply-to
Content
I agree that we need a better pprint. I think it would be easier to create something new rather than try and morph the existing pprint, but maybe I lack enough imagination. I'd prefer to use functools.singledispatch instead of a __pprint__ method, but it doesn't really make a lot of difference. PEP 443 (singledispatch) does use pprint as a motivating example.

I tend to agree with Raymond that we don't want to guess what a dataclass class intends as its usage. After all, we deliberately made it easy to add a custom __repr__ (one not generated by dataclasses.dataclass).
History
Date User Action Args
2021-01-31 18:27:10eric.smithsetrecipients: + eric.smith, rhettinger, eric.snow, serhiy.storchaka, LewisGaul
2021-01-31 18:27:10eric.smithsetmessageid: <1612117630.5.0.405211576036.issue43080@roundup.psfhosted.org>
2021-01-31 18:27:10eric.smithlinkissue43080 messages
2021-01-31 18:27:10eric.smithcreate