Author serhiy.storchaka
Recipients ammar2, kinow, serhiy.storchaka
Date 2019-07-22.07:28:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2019-07-22 07:28:56serhiy.storchakasetrecipients: + serhiy.storchaka, kinow, ammar2
2019-07-22 07:28:56serhiy.storchakasetmessageid: <>
2019-07-22 07:28:56serhiy.storchakalinkissue37647 messages
2019-07-22 07:28:55serhiy.storchakacreate