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 <>
There is a subtle difference between 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);
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: <>
2021-07-24 18:28:59BTaskayalinkissue43950 messages
2021-07-24 18:28:59BTaskayacreate