5 ms·
the {name} parameter is in the locals() dict like it always is
by benwilber0 1y ago
the {name} parameter is in the locals() dict like it always is
- fzzzy 1y agoGood point. Perhaps the database api could refuse strings and require Templates.
- bshacklett 1y agoThat’s a big breaking change around a brand new feature. I’m sure it could be done well, but it gives me the shivers.
- daedrdev 1y agomuch better would be execute_template(t"...")
- dragonwriter 1y agoYou add a new API that takes templates only leaving the existing API in place. You (some releases later) deprecate the string API. You (some releases later, with clear advance warning of when it is coming) actually remove the deprecated API. "It's a big breaking change around a brand new feature", yeah, so you don't break anything around a brand new feature, it's not like this kind of transition is a new concept.