Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pprint collections with correct indentation and line breaks #100264

Open
BorjaEst opened this issue Dec 15, 2022 · 1 comment
Open

pprint collections with correct indentation and line breaks #100264

BorjaEst opened this issue Dec 15, 2022 · 1 comment
Labels
type-feature A feature request or enhancement

Comments

@BorjaEst
Copy link

BorjaEst commented Dec 15, 2022

Feature or enhancement

pprint collections with correct indentation and line breaks.

Pitch

It simplifies repr methods in complex dataclasses.

Previous discussion

How to pprint custom collection

@BorjaEst BorjaEst added the type-feature A feature request or enhancement label Dec 15, 2022
@rhettinger
Copy link
Contributor

rhettinger commented Dec 15, 2022

I think the whole pprint module needs an alternate implementation built on a fresh design for easy extendibility and customization. The current module has been pushed about as far as it can go without having to make untenable guesses about how classes want to be displayed. ISTM there is no one size fits all solution that we can just plop in the current pprint design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants