[python-win32] popen2 pipe closes on ^Z

Itamar S.-T. itamarst@yahoo.com
Tue, 12 Jun 2001 06:14:27 -0700 (PDT)


Hi,

I'm opening a python program with a pair of pipes
(os.popen2 or win32file.popen2, makes no difference)
in Python 2.0, in Windows 2K. I want to send binary
data over the pipe, so I open with mode "b". However,
if I send a ^Z character as part of the data the
program thinks the pipe has been closed, even though
that is simply part of the data. So when I read from
the pipe I get an empty string '' instead of the rest
of the data.

Is there anyway to solve this problem or do I just
have to base64 my data before sending it?

=====
Itamar Shtull-Trauring, itamar(at)shtull-trauring.org

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/