On May 24, 2:12 am, bukzor <workithar... at gmail.com> wrote: > It's not a string it's a cStringIO.StringIO, .... Just to reinforce this point, in general, you want to use cStringIO when you need an object that has a "file-like" interface, but you want to keep the results in memory.