A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-July/026526.html below:

why string substitution is not the same operation as data formatting)

Suggestion for fixing %(foo)s (Re: [Python-Dev] PEP 292-related: why string substitution is not the same operation as data formatting) Suggestion for fixing %(foo)s (Re: [Python-Dev] PEP 292-related: why string substitution is not the same operation as data formatting)Guido van Rossum guido@python.org
Mon, 15 Jul 2002 09:05:29 -0400
> > > Guido, can you please, for our enlightenment, tell us what are the
> > > reasons you feel %(foo)s was a mistake?
> > 
> > Because of the trailing 's'.  It's very easy to leave it out by
> > mistake
> 
> How about introducing a new format
> 
>   %{foo}
> 
> which is defined to be the same as %(foo)s.

Maybe too subtle (you'd really have to explain the history to make
people understand why there's both %() and %()), and doesn't solve the
compile time / run time issue IMO.

--Guido van Rossum (home page: http://www.python.org/~guido/)




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4