You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I wrote the code for PySnooper to display exception messages, I chose to truncate the message if it was too long. That's still the current behaviour of PySnooper. When writing snoop, I changed my mind, so snoop shows the whole message. I'm not sure which is right.
On the one hand, there may be situations where users want information in the middle of a long message, and if they don't, scrolling past it is not that hard. On the other hand, messages can get arbitrarily long, and this could be really annoying if they are raised many times. When not using snoop, those exceptions may be caught so they're not visible, so turning on snoop and being flooded with long exceptions would be an unpleasant surprise.
What do you think? If I turned on truncation again, what would be a good default limit?
The text was updated successfully, but these errors were encountered:
When I wrote the code for PySnooper to display exception messages, I chose to truncate the message if it was too long. That's still the current behaviour of PySnooper. When writing snoop, I changed my mind, so snoop shows the whole message. I'm not sure which is right.
On the one hand, there may be situations where users want information in the middle of a long message, and if they don't, scrolling past it is not that hard. On the other hand, messages can get arbitrarily long, and this could be really annoying if they are raised many times. When not using snoop, those exceptions may be caught so they're not visible, so turning on snoop and being flooded with long exceptions would be an unpleasant surprise.
What do you think? If I turned on truncation again, what would be a good default limit?
The text was updated successfully, but these errors were encountered: