[Python-ideas] Draft PEP on string interpolation

Mike Miller python-ideas at mgmiller.net
Tue Aug 25 00:06:54 CEST 2015


On 08/24/2015 02:54 PM, Paul Moore wrote:
 > Agreed. In a convenience library where it's absolutely clear that a
 > shell is involved (something like sarge or invoke) this is OK, but not
 > in the stdlib as the "official" way to call external programs.

Don't focus on os.system(), it could be any function, and not particularly
relevant, nor do I recommend this line as the official way.

Remember Nick Coghlan's statement that the "easy way should be the right way"?
That's what this is trying to accomplish.

 > - People will fail to understand the difference between e'...' and
 > f'...' and will use the wrong one when using os.system, and things
 > will work correctly but with security vulnerabilities.

I don't recommend e'' and f'', only e'' at this moment.

-Mike


More information about the Python-ideas mailing list