Re: Reaching the real world

2005-01-05 Thread Avi Berkovich
Hey, If you want to do something simple, you can use your parallel port to control other circuitry. I've made an extension module before for DLPortIO which is a free lib for doing port IO in win2k/xp. I have to dig it out of my hdds/discs if you want it, but it's really easy to make with pyrex

Re: Python Interactive Shell - outputting to stdout?

2004-12-27 Thread Avi Berkovich
Avi Berkovich wrote: Hey, I can't make it work, I don't get any data from either stdout nor stderr. If I send lines and then close the stdin pipe, I may get an exception message from several lines up. I tried manually reading from the stdout pipe, but it just blocks and hangs no mat

Re: Python Interactive Shell - outputting to stdout?

2004-12-27 Thread Avi Berkovich
Hey Steve, Well, I've tried flush() before, but I didn't know about the "-u" switch. Thank you for tinkering on this, I shall post again if I make any progress. Avi Steve Holden wrote: Steve Holden wrote: Avi Berkovich wrote: Hey, I can't make it work, I don't get a

Re: Python Interactive Shell - outputting to stdout?

2004-12-24 Thread Avi Berkovich
Hey, I can't make it work, I don't get any data from either stdout nor stderr. If I send lines and then close the stdin pipe, I may get an exception message from several lines up. I tried manually reading from the stdout pipe, but it just blocks and hangs no matter what I send over via the stdin

Re: Python Interactive Shell - outputting to stdout?

2004-12-23 Thread Avi Berkovich
Hey Steve, I did write a program to deal with the windows command interpreter, and it works. I don't need to do this, but a friend of mine needed to issue commands to the interpreter via pipes from a non python program, and he has a fully functional component for using pipes, and has done it wi

Python Interactive Shell - outputting to stdout?

2004-12-23 Thread Avi Berkovich
Hello, I was unable to use popen2.popen4 to grab python.exe's (2.3) output, for starts, it doesn't show the version information at the beginning and won't return anything when writing to the stdin pipe, it seems that if I give it some error nous expression, the pipe would return the exception d