python-devtools icon indicating copy to clipboard operation
python-devtools copied to clipboard

Truncate long strings etc?

Open indigoviolet opened this issue 5 years ago • 4 comments

I noticed in #16 that you intended to strip the middle of massive outputs, but I can't seem to get this to happen (for very long strings). Is it possible to configure this somehow?

indigoviolet avatar Sep 01 '20 03:09 indigoviolet

i think I never did it, mostly I find it useful to show the whole of even very long strings.

Have to accept a PR, but it would need to be configurable, and default to off.

samuelcolvin avatar Sep 01 '20 21:09 samuelcolvin

This would also be useful for long dictionaries or lists.

alecgerona avatar Apr 05 '21 04:04 alecgerona

This would sometimes be useful for long dictionaries or lists.

In other cases it would be extremely annoying, this would need to be an opt-in feature.

samuelcolvin avatar Sep 03 '21 16:09 samuelcolvin

Agree, when usually people are debugging something, they want to see the full object, not just some part of it as the valuable piece of code can be just truncated most of the time 🤣

sshishov avatar Nov 24 '22 11:11 sshishov