[issue43950] Include column offsets for bytecode instructions
Batuhan Taskaya
report at bugs.python.org
Sat Jul 24 14:28:59 EDT 2021
Batuhan Taskaya <isidentical at gmail.com> added the comment:
There is a subtle difference between traceback.py and Python/traceback.c which makes the latter (C version) output the line without trimming the trailing whitespace. The Python version simply uses `.strip()` which strips both the left (starting) and right (ending) side. I'd personally go with adapting the C version to use full strip, since it makes more sense but I am open to comments on this.
Here is an example test (needs GH 27339 first) (func( call has 2 trailing whitespace characters);
https://gist.github.com/isidentical/37ab1693d551b678a52626298d99e582
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43950>
_______________________________________
More information about the Python-bugs-list
mailing list