[Python-ideas] Config file template motivation for PEP 463 or an update to format string spec

2022-04-01 Thread brian . patrick . mccall
One way that I like to create templates for config files is to write the config file in a way that can be used with `str.format` if I read in the entire config file as a string before re-saving it or sending it somewhere.* The config file contains a half dozen or dozen variables. Another several

[Python-ideas] Re: Syntax proposal of for..in..if in regular for loops

2022-04-01 Thread brian . patrick . mccall
+1 Python has always seemed to me to allow one to completely describe exactly what you are iterating over in a for loop in the one line containing the for statement. And that is more or less the principle I tend to follow, unless the for statement simply gets to be too long. I have even used th