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

[Python-Dev] PEP 216 (string interpolation) alternative EvalDict

[Python-Dev] PEP 216 (string interpolation) alternative EvalDict [Python-Dev] PEP 216 (string interpolation) alternative EvalDictSteven Majewski sdm7g@Virginia.EDU
Mon, 14 Jan 2002 18:11:30 -0500 (EST)
>     Paul> Sorry I wasn't clear. Let's say it's the second hour of our
>     Paul> Perl/Python class.
>
>     Paul> Here's Perl:
>
>     Paul> $a = 5;
>     Paul> $b = 6;
>     Paul> print "$a $b";
>
>     ...
>
>     Paul> Here's Python:
>
>     Paul> a = 5;
>     Paul> b = 6;
>     Paul> print "%(a)s %(b)s" % vars()
>

How does Perl handle it if the tokens aren't whitespace separated?
Is there an optional enclosing bracket as in shell syntax ?

How do you do:  "%(word)sly yours" %  vocabulary ?

(Sorry-- I stopped Perling somewhere around version 4.)

-- Steve Majewski





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