Add `!R` conversion to f-string and `str.format()` to format error messages

In short, adding a new !R conversion format didn’t convince anyone. It has been said that using just repr() or !r conversion format is ok. If the object type overrides __repr__() with a misleading string, it’s an issue with this type, not an issue in Python.

So I prefer to abandon this idea and will move back to my initial plan to replace str() with repr() to format attribute names in AttributeError error messages. See my PR gh-154614.

1 Like