StringIO in 2.6 and beyond

Bill McClain 20080915.20.wmcclain at
Mon Dec 8 22:30:44 CET 2008

On 2008-12-08, Christian Heimes <lists at> wrote:

> In this context 'str' means Python 3.0's str type, which is unicode in 
> 2.x. Please report the misleading error message.

So this is an encoding problem? Can you give me a hint on how to correct in my
example? I see that io.StringIO() has an encoding parameter, but I'm unclear
what to specify.

Sattre Press                              History of Astronomy               During the 19th Century
info at                       by Agnes M. Clerke

More information about the Python-list mailing list