PEP 501: (reopen) General purpose string template literals

The more general tag-string proposal at GitHub - jimbaker/tagstr: This repo contains an issue tracker, examples, and early work related to PEP 999: Tag Strings should be able to do that. The tag function there receives both a lambda that, when called, returns the value of the expression, and a string that represents the text of the expression. (And also the conversion code and the format spec, if present.)

1 Like