Interpolation templates were recently brought up here ( https://firstname.lastname@example.org/thread/5AW73IC...), 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?
On Fri, Jun 4, 2021 at 1:37 PM Chris Angelico email@example.com wrote:
On Fri, Jun 4, 2021 at 10:02 PM Thomas Güttler firstname.lastname@example.org wrote:
I have a crazy idea how to extend Python for web development.
What do you think? What are the next steps?
Something like this - but more generic - has been proposed already:
There've been a few variants on the idea, but I think PEP 501 is the best summary.
If you want to press forward with this, I think that would be the best starting point.
ChrisA _______________________________________________ Python-ideas mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://email@example.com/message/WZHFKM... Code of Conduct: http://python.org/psf/codeofconduct/