This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BTaskaya
Recipients BTaskaya, Dennis Sweeney, Mark.Shannon, ammar2, aroberge, brandtbucher, miss-islington, nedbat, pablogsal, serhiy.storchaka, terry.reedy
Date 2021-07-24.18:28:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627151339.15.0.352403899767.issue43950@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-07-24 18:28:59BTaskayasetrecipients: + BTaskaya, terry.reedy, nedbat, aroberge, Mark.Shannon, serhiy.storchaka, ammar2, pablogsal, miss-islington, brandtbucher, Dennis Sweeney
2021-07-24 18:28:59BTaskayasetmessageid: <1627151339.15.0.352403899767.issue43950@roundup.psfhosted.org>
2021-07-24 18:28:59BTaskayalinkissue43950 messages
2021-07-24 18:28:59BTaskayacreate