On 2008-12-09, Peter Otten <[EMAIL PROTECTED]> wrote: > >>> out = io.StringIO() > >>> print(u"hello", file=out, end=u"\n") > >>> out.getvalue() > u'hello\n'
That has the benefit of working. Thank you! That can't be the intended behavior of print(), can it? Insering non-unicode spaces and line terminators? I thought all text was unicode now. Or is that only in 3.0? -Bill -- Sattre Press History of Astronomy http://sattre-press.com/ During the 19th Century [EMAIL PROTECTED] by Agnes M. Clerke http://sattre-press.com/han.html -- http://mail.python.org/mailman/listinfo/python-list