On Fri, Mar 30, 2012 at 11:22 PM, Yingjie Lan <lany...@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 formatting/interpolation systems: http://docs.python.org/library/string.html#template-strings http://docs.python.org/library/string.html#format-string-syntax http://docs.python.org/library/stdtypes.html#string-formatting-operations 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 too magical. Cheers, Chris -- http://rebertia.com -- http://mail.python.org/mailman/listinfo/python-list