YA string interpolation and printing idea
Erik Max Francis
max at alcyone.com
Sat Jan 17 05:27:58 CET 2004
Paul Rubin wrote:
> How about adding a string interpolation method ...
You already have one with the % operator:
"hello %(name)s" % locals()
> ... and a some print
> methods to strings.
Why in the world would you want that? Printing methods go on the things
that do work of printing, which are file-like objects, not strings.
And, on file-like objects, that method is called `write'.
__ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
\__/ It comes from inside, and that's what I consider to be soul music.
-- Sade Adu
More information about the Python-list