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-June/025648.html below:

[Python-Dev] PEP 292, Simpler String Substitutions

[Python-Dev] PEP 292, Simpler String SubstitutionsTim Peters tim.one@comcast.net
Wed, 19 Jun 2002 21:39:35 -0400
[Delaney, Timothy]
> Fair enough. I couldn't off the top of my head think of an ambiguous case,

The difficulty is that a blank is a kosher flag modifier in C formats.  So,
e.g.,

    'goofy%(name) dogs'

is a legitimate Python format as is, and

>>> print 'goofy%(name) dogs' % {'name': 666}
goofy 666ogs
>>>

works correctly.

Why *Python* follows these goofy rules in all respects is a question we
don't ask <wink>.





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