Closed sestinj closed 1 year ago
Ohhh very very nice, yes I was just running into something related today. Any chance we could get a test over here? https://github.com/mahmoud/boltons/blob/master/tests/test_tbutils_parsed_exc.py
Thanks for getting the ball rolling in either case!
Of course, here's a test! Added a note, but obviously without storing more information about columns in ParsedException (already noted here that some of this is missing), this will break the to_string(from_string(original_tb)) == original_tb
property.
Good point. I'm not opposed to adding more attributes, of course. Any interest in pursuing that in this PR, or should we make a separate issue?
It's unlikely I'll get to that soon, so wouldn't want to hold up this PR. I made a new issue here.
Sounds good, thanks again for this!
Anchors are sometimes added below the source line, (see https://github.com/python/cpython/blob/dcd6f226d6596b25b6f4004058a67acabe012120/Lib/traceback.py#L479-L510). This fix will allow parsing to continue as normal in their presence