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