Remix.run Logo
frainfreeze 9 days ago

Nice work on PEP 501! Probably a silly question, but how comes PEP 292 isn't mentioned anywhere in PEP 750?

davepeck 9 days ago | parent [-]

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`

sevensor 8 days ago | parent [-]

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

davepeck 8 days ago | parent [-]

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