
On Aug 26, 2015 3:01 PM, "Eric V. Smith" <eric@trueblade.com> wrote:
On 08/26/2015 03:53 PM, Mike Miller wrote:
Hold on, it took f'' strings a while to grow on you, give it a few minutes. ;)
I'd like Python to be competitive with other (shell) scripting languages, and appeals to purity stand in the way of that. Sometimes practical is just darn useful.
We've already acquiesced to arbitrary expressions, so this is a small further step, icing on the cake, no? I believe Guido mentioned something about "half-measures" in one of his messages.
Python is never going to be bash.
env=os.environ.get f'HOME={env("HOME")}' 'HOME=/home/eric'
How is this wrong/another way to do the wrong thing? * $HOME may contain quotes, single quotes, newlines (which subprocess.call interprets as separate commands), semicolons
That's good enough.
No, tuples (as exec specifies) are good enough. This is the wrong kind of lazy.
Eric.
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/