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 handles depth argument incorrectly #44928
Comments
pprint.pprint( [[[[[ ]]]]], depth=0)
AssertionError: depth must be > 0
pprint.pprint( [[[[[ ]]]]], depth=0.5)
[[...]]
pprint.pprint( [[[[[ ]]]]], depth=1)
[[[...]]] I would like to see the root (that is [...]) with depth=0 (or depth=1 if you insist), either way, [[[...]]] for depth=1 is incorrect. |
I created patch 1712742 to fix this. BTW, I think that a depth of 1 should mean the top level object. |
The correct patch number is 1713041. Neal, assigning to you so you can close this at the same time as the patch. |
Of course. Thanks for the correction. |
Closing as dupe of the patch issue. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: