I nust saw the #python pep750 and I think an addition could be to have a string like t"hello {{world}}" resolve to templatelib.Template(["hello ", templatelib.Interpolation(None, "world")])
. The syntax is meant to mirror django. The idea is to have an easy way to use arbitrary interpolation token that can be replaced later from a context. The same could be done with t"hello {"world"}" and use the value instead of the expr of the interpolation but I think the double curly are easier to read
=> More informations about this toot | View the thread | More toots from gkrnours@mastodon.gamedev.place
=> View python tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini