Interpolation templates were recently brought up here (https://email@example.com/thread/5AW73ICBD4CVCRUNISRNAERPPF2KSOGZ/
), and Guido mentioned that in his opinion the SC would be unlikely to reconsider PEP 501 in its current state. I trust that he has a much better insight into this sort of thing than the rest of us, so he's likely right, but if I'm honest I wasn't able to find any of the actual reasons why PEP 501 was deferred in the
Rationale or Discussion sections of the PEP.
If anyone has any insight into the actual reasons why PEP 501 might be considered unworkable in its current state, I'd be really curious to find out what they are. It's hard to argue in favor of a feature if you don't know what the actual arguments against it are.
The rationale for it at least seems quite solid to me, as it provides powerful templating and injection-safety functionality. It's not a purely hypothetical feature either, as it has been quite successful in other languages like C#.
If the success of f-strings over the last five years is anything to go by, people also seem to overwhelmingly prefer this style of string formatting compared to `str.format` or `%` formatting. I literally can't think of a single modern Python codebase I've seen lately where f-strings weren't the main method of string-formatting employed.
Is it something in the implementation then? Or something else?