[Python-ideas] String interpolation: environment variables, command substitution
Mike Miller
python-ideas at mgmiller.net
Wed Aug 26 21:44:25 CEST 2015
True, though less readable I think. If we're going to go as far as arbitrary
expressions, let's discuss making very common scripting tasks easier.
-Mike
On 08/26/2015 12:27 PM, Brendan Barnwell wrote:
> You can already do this with the existing proposals by interpolating an
> expression whose value is an environment variable (e.g., 'My home is
> {os.environ["HOME"]}') or whatever other data you want to interpolate. There's
> no reason to add special syntax for this.
>
More information about the Python-ideas
mailing list