Message398172
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 |
|
Date |
User |
Action |
Args |
2021-07-24 18:28:59 | BTaskaya | set | recipients:
+ BTaskaya, terry.reedy, nedbat, aroberge, Mark.Shannon, serhiy.storchaka, ammar2, pablogsal, miss-islington, brandtbucher, Dennis Sweeney |
2021-07-24 18:28:59 | BTaskaya | set | messageid: <1627151339.15.0.352403899767.issue43950@roundup.psfhosted.org> |
2021-07-24 18:28:59 | BTaskaya | link | issue43950 messages |
2021-07-24 18:28:59 | BTaskaya | create | |
|