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/2000-January/001867.html below:

[Python-Dev] Multiple dicts for string interpolation?

[Python-Dev] Multiple dicts for string interpolation? [Python-Dev] Multiple dicts for string interpolation?Guido van Rossum guido@CNRI.Reston.VA.US
Tue, 25 Jan 2000 23:13:28 -0500
> I'd like to propose a third alternative.  How about if the string
> interpolation function accepted a tuple of dictionaries directly:
> 
>     s = format % (d1, d2)
> 
> It would only be used when named interpolation was expected.  I don't think
> there would be any conflict with current % operator semantics.

Gut feeling: it's dangerous to fill up every possible dark corner with
specific semantics that are occasionally useful, because if you go too
far you lose useful redundancy, and you end up with Perl.

Not sure whether this particular suggestion is "going too far."

I think it depends on to what extent this is a common, useful idiom.
Do you have evidence of that?  Examples?

--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