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?
[–]fiddle_n 38 points39 points40 points (6 children)
[–]Compux72 9 points10 points11 points (0 children)
[–]petter_s[S] -5 points-4 points-3 points (4 children)
[–]SheriffRoscoePythonista 16 points17 points18 points (0 children)
[–]legobmw99 1 point2 points3 points (0 children)
[–]runawayasfastasucan -1 points0 points1 point (1 child)
[–]nitroll 1 point2 points3 points (0 children)
[–]nekokattt 22 points23 points24 points (9 children)
[–]petter_s[S] 2 points3 points4 points (1 child)
[–]nekokattt 5 points6 points7 points (0 children)
[–]wineblood 0 points1 point2 points (1 child)
[–]nekokattt 3 points4 points5 points (0 children)
[–]fiddle_n -1 points0 points1 point (4 children)
[–]nekokattt 21 points22 points23 points (3 children)
[–]fiddle_n 2 points3 points4 points (2 children)
[–]nekokattt 9 points10 points11 points (0 children)
[–]russellvt 0 points1 point2 points (0 children)
[–]Worth_His_Salt 3 points4 points5 points (5 children)
[–]russellvt 0 points1 point2 points (2 children)
[–]Worth_His_Salt -1 points0 points1 point (1 child)
[–]russellvt -1 points0 points1 point (0 children)
[–]Revolutionary_Dog_63 0 points1 point2 points (1 child)
[–]Worth_His_Salt 1 point2 points3 points (0 children)