Obviously I don't need PeekNamedPipe here but I know the pipe has something in it and wanted to try it out. The code all works fine if I comment out PeekNamedPipe.
The pipes returned by the win32pipe.popen calls are standard file-like objects, rather than win32 Named Pipes. The only way I know of to get an actual Named Pipe is with CreateNamedPipe.
The folks on the win32 SIG might be able to help you out with more specifics about the uses of named pipes.
Cheers, Nick.
-- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://boredomandlaziness.skystorm.net -- http://mail.python.org/mailman/listinfo/python-list