string.Template and string.templatelib.Template

So now (3.14), Python will have both string.Template and string.templatelib.Template. What happened to « There should be one– and preferably only one –obvious way to do it? » Will the former be deprecated?

I think it’s curious that string.Template is not even mentioned in PEP 750, which introduced the new class. It has such a small API; couldn’t it be extended?

submitted by /u/petter_s to r/Python
[link] [comments]


Commentaires

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *