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
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/G6H3M7USSQ2YCFMATMU24J5BJMDJPDVW/
Code of Conduct: http://python.org/psf/codeofconduct/