Yet another string formatting proposal (Was: python-dev Summary for 2002-11-16 through 2002-11-30)
Greg Ewing
see_reply_address at something.invalid
Tue Dec 3 21:35:11 EST 2002
Mike Rovner wrote:
> We already have print notion for that purpose. Instead of introducing
> another one, IMHO better extend print to output to a string.
> Syntax may be like
> print >>var, <expr-list>
> or we can do better.
Actually, that's already taken -- it means to
print to a file.
Possibly it could be
print >>$var, ...
But I doubt that would satisfy those who advocate
a string-interpolation mechanism, because they're
after something that's more readable than what
print gives you.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list