PEP 750: Tag Strings For Writing Domain-Specific Languages

All,

Thank you for the continued feedback. We made another round of updates to the PEP, including:

  1. Added a new top-level templatelib to house Template and Interpolation.

  2. Added full support for both explicit and implicit concatenation. template+template, template+str, and str+template are all supported. Concatenation always results in a Template. In the end, we decided the arguments in favor of allowing concatenation outweighed the potential disadvantages. We’ve updated the “rejected ideas” section of the PEP to describe this.

  3. Rewrote the “How to Teach” section.

  4. Fixed several bugs and omissions that y’all caught (thank you).

See the documentation preview for the latest.

(I’ll also reply separately to specific comments above. Thanks again!)

6 Likes