string interpolation for python
clp2 at rebertia.com
Sat Mar 31 09:51:50 CEST 2012
On Fri, Mar 30, 2012 at 11:22 PM, Yingjie Lan <lanyjie at yahoo.com> wrote:
> Hi all,
> I'd really like to share this idea of string interpolation for formatting.
> Let's start with some code:
>>>> name = "Shrek"
>>>> print( "Hi, $name$!")
> Hi, Shrek!
Python already has *3* different built-in string
Do we really want to add yet another to this pile?
I would surmise that your key "implicitly grab variable values from
the enclosing scope" feature has previously been rejected for being
More information about the Python-list