Toot

Written by gkrnours on 2024-12-25 at 10:06

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

Mentions

Tags

=> View python tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113712903786922869
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
224.142699 milliseconds
Gemini-to-HTML Time
0.449345 milliseconds

This content has been proxied by September (ba2dc).