Hacker News new | past | comments | ask | show | jobs | submit login

My hope is to write some new documentation as 3.14 nears release that explains the (growing) constellation of string formatting mechanisms in Python and describes when they might each be useful. They overlap to some degree, but each has a unique twist that makes them useful in different situations. PEP 292 is going nowhere and is used, for instance, in really powerful libraries like `flufl.i18n`



Is a PEP 750 Template entirely different from a PEP 292 Template? I’m a bit confused about the relationship.


Yeah, they’re unrelated. (PEP 750 places its Template and Interpolation classes in the new string.templatelib)




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: