Question about quoting style.
Steve Holden
steve at holdenweb.com
Tue Oct 2 20:42:43 EDT 2007
James Stroud wrote:
> Bruno Desthuilliers wrote:
>> First point is that Python has no "variable interpolation".
>
> If you squint, it kind of does*:
>
> >>> print '%(language)s has %(#)03d quote types.' % \
> {'language': "Python", "#": 2}
> Python has 002 quote types.
>
> You might think if the dict as a name space and the formatting operation
> as performing interpolation--but this take on formatting might be a stretch.
>
> James
>
> * http://docs.python.org/lib/typesseq-strings.html
http://docs.python.org/lib/node40.html
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Sorry, the dog ate my .sigline
More information about the Python-list
mailing list