[Python-ideas] Briefer string format

Chris Angelico rosuav at gmail.com
Wed Jul 22 02:30:02 CEST 2015


On Wed, Jul 22, 2015 at 10:28 AM, Ryan Gonzalez <rymg19 at gmail.com> wrote:
> Pretty sure I'm going to be odd one out, here...
>
> I don't like most of Ruby, but, after using Crystal and CoffeeScript, I have
> fallen in love with #{}. It gives the appearance of a real expression, not
> just a format placeholder. Like:
>
> f'a#{name}b'

That's what I'm talking about. It's not a placeholder. It's not a
duplicated name that references a keyword argument at the end of the
expression. It's an actual expression.

ChrisA


More information about the Python-ideas mailing list