[Python-ideas] String interpolation: environment variables, command substitution

Guido van Rossum guido at python.org
Thu Aug 27 03:59:10 CEST 2015


On Wed, Aug 26, 2015 at 6:55 PM, Brendan Barnwell <brenbarn at brenbarn.net>
wrote:

> On 2015-08-26 12:53, Mike Miller wrote:
>
>> 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.
>>
>
>         There's no comparison between "arbitrary expressions" and "new
> syntax for shell shortcuts".  "Arbitrary expressions" are arbitrary Python
> expressions, so that just means being able to do what you can already do in
> Python, with Python syntax, in Python strings.  This includes being able to
> access environment variables, since you can already do that with a Python
> expression.  These shell shortcuts are just a way to open a back door that
> would bring all of shell syntax into Python, and add new complications to
> Python's own syntax as well.  I see quick-and-dirty shell scripting as
> pretty small potatoes in the scheme of things Python can be used for; it's
> not worth changing the language in any significant way to a accommodate
> that.
>

I am more and more beginning to believe that Mike is just playing an
elaborate prank on us, seeing how far he can go with this before people
start noticing the proposal has jumped the shark.

-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150826/4a008e9f/attachment.html>


More information about the Python-ideas mailing list