Changing exception text in micro releases
24 Sep
2021
24 Sep
'21
7:51 a.m.
This PR https://github.com/python/cpython/pull/28310 changes the message for some exceptions. Currently:
format('', '%M') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Invalid format specifier
With the proposed change:
format('', '%M') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Invalid format specifier '%M' for object of type 'str'
This also applies to str.format() and f-strings. This is clearly an improvement. My question is: is it okay to backport this to 3.9 and 3.10? I think we have a rule that it's okay to change the exception text, but I'm not sure how that applies to micro releases (3.9.x, 3.10.1). Eric
916
Age (days ago)
917
Last active (days ago)
7 comments
6 participants
participants (6)
-
Eric V. Smith
-
Ethan Furman
-
Filipe Laíns
-
Guido van Rossum
-
Serhiy Storchaka
-
Terry Reedy