Would the Rich traceback formatter benefit from having separate exception notes? #2049
-
Hello Rich devs,
As the PEP stands, when several notes are added to an exception, they are collected in a sequence (tuple). There is some discussion about this being too complicated: instead of a sequence, there could be a single string where notes would be separated by newlines (but newlines can also appear in individual notes). How much would Rich's traceback rendering benefit from having the notes separate? How much sadness would there be if they were concatenated? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Petr, My vote would be for the tuple because I can imagine Rich displaying each note within a bullet list. I'm sure I could work with it if the notes were concatenated in a str. Ideally there would be some rule or convention that allowed the notes to be separated unambiguously. Will |
Beta Was this translation helpful? Give feedback.
Hi Petr,
My vote would be for the tuple because I can imagine Rich displaying each note within a bullet list.
I'm sure I could work with it if the notes were concatenated in a str. Ideally there would be some rule or convention that allowed the notes to be separated unambiguously.
Will