File object wrapper for a String?

Christian Heimes lists at cheimes.de
Fri Feb 15 00:24:09 CET 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