File object wrapper for a String?

Christian Heimes lists at cheimes.de
Thu Feb 14 18:24:09 EST 2008


Diez B. Roggisch wrote:
> Christian told you how to work with popen. Just for the record thogh: 
> there are the StringIO and cStringIO-modules.

IIRC subprocess requires a real file with a file descriptor for the
standard streams. An object with a write or read method isn't enough.

Christian




More information about the Python-list mailing list