Ron Adam wrote:

> ...What would be the advantage of using StringIO over list.append with 
> ''.join()?
The advantage is more in using a function that prints as it goes
rather than building up a large string to print.  I would call the
print function at the bottom (with None as the print destination),
rather than printing the result of calling the string function.

I just did the StringIO thing to show you that printing as you go
needn't mean you cannot get the string value without duplicating code.

--Scott David Daniels
[EMAIL PROTECTED]

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to