string interpolation (Was: Newbie can't figure out documentation practices)

Paul Rubin http
Mon May 12 06:07:40 EDT 2003


Erik Max Francis <max at alcyone.com> writes:
> I don't know, it doesn't seem all that awful to me in Python:
> 
> >>> name = "John"
> >>> age = 23
> >>> "The age of %(name)s is %(age)d." % locals()
> 'The age of John is 23.'

I'm sorry, but that is awful.




More information about the Python-list mailing list