A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025727.html below:

[Python-Dev] *Simpler* string substitutions

[Python-Dev] *Simpler* string substitutions [Python-Dev] *Simpler* string substitutionsBarry Scott barry@barrys-emacs.org
Thu, 20 Jun 2002 22:21:02 +0100
If I'm going to move from %(name)fmt to ${name} I need a place for
the fmt format. Given the error prone nature of %(name) should have
been %(name)s

Howabout adding the format inside the {} for example:

    ${name:format}

You can then have

    $name
    ${name}
    ${name:s}

$name and ${name} work as you have already decided. ${name:format} allows
the format to control the substitution.

    Barry






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