question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[help] How can I apply depth control in rich.pretty?

See original GitHub issue

pprint has a depth argument in order to control nesting level.

depth controls the number of nesting levels which may be printed; if the data structure being printed is too deep, the next contained level is replaced by … By default, there is no constraint on the depth of the objects being formatted.

Would it be possible to apply similiar apprach on rich.pretty in order to save its results into a file?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
willmcgugancommented, Jan 9, 2022

v11.0.0 has a max_depth argument for pretty printing

0reactions
github-actions[bot]commented, Jan 9, 2022

Did I solve your problem?

Why not buy the devs a coffee to say thanks?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extended Depth of Field Using Photoshop Stacks - YouTube
Rich Harrington demonstrates a great technique for gaining depth of field in an image using Image Staking in Photoshop.
Read more >
Creating a Sense of Depth in Your Photos - Photography Mad
A photograph with a feeling of depth and perspective is much more engaging and interesting. These tips will help you shoot images with...
Read more >
The comprehensive guide to iPhone 13 for photo and video
Tap the Depth Control button, then drag the slider to adjust the depth of field. Adjustments that you make to depth of field...
Read more >
Release 13.0.0 Will McGugan - Rich's documentation!
Rich is a Python library for writing rich text (with color and style) to the terminal, and for displaying advanced content such as...
Read more >
Designing Beautiful Shadows in CSS - Josh W Comeau
CSS gives us the tools to create rich, lush, lifelike shadows. ... If we use shadows strategically, we can create the illusion of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found