Batuhan Taskaya <isidenti...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to