Message348284
Line 9 is not where the error actually happened. The exception is raised not when you call Z(), but when you implicitly call Z.__str__() when evaluate the % operator.
In Python 3.8 the traceback points to the start of the subexpression that raises an exception.
So this issue has been fixed in 3.8. The fix was not backported to 3.7 because it is a large change which affects other code that traces execution or analyses tracebacks (e.g. coverage.py). |
|
Date |
User |
Action |
Args |
2019-07-22 07:28:56 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, kinow, ammar2 |
2019-07-22 07:28:56 | serhiy.storchaka | set | messageid: <1563780536.03.0.245913962637.issue37647@roundup.psfhosted.org> |
2019-07-22 07:28:56 | serhiy.storchaka | link | issue37647 messages |
2019-07-22 07:28:55 | serhiy.storchaka | create | |
|