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-February/020310.html below:

[Python-Dev] PEP 215 redux: toward a simplified consensus?

[Python-Dev] PEP 215 redux: toward a simplified consensus? [Python-Dev] PEP 215 redux: toward a simplified consensus?Fredrik Lundh fredrik@pythonware.com
Mon, 25 Feb 2002 22:59:14 +0100
barry wrote:
> From a /non-programmer's/ point of view, %(var)s is way too error
> prone, and $-strings are an attempt at implementing a simple to
> explain, hard to get wrong, rule for thru-the-web supplied template
> strings.

how about making that "s" optional?

    1. %% substitutes to just a single %

    2. %(identifier) followed by non-identifier characters gets
    interpolated with the value of the 'identifier' key in the sub-
    stitution dictionary.

    3. For handling cases where the identifier is followed by
    identifier characters that aren't part of the key, $(identfier)s
    is equivalent to %(identifier)

</F>




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