On 2008-12-09, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > This puzzles me too. According to the documentation StringIO accepts > both byte strings and unicode strings. Try to replace > output.write('First line.\n') > with > output.write(unicode('First line.\n')) > or > output.write(str('First line.\n')) > and see if one of those works.
This works: output.write(unicode('First line.\n')) ..but this generates the error: print(unicode('Second line.'), file=output) -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