fcntl/ioctl and O_NONBLOCK
Ralf Hildebrandt
hildeb at www.stahl.bau.tu-bs.de
Sun Nov 28 10:47:16 EST 1999
On 28 Nov 1999 06:45:26 GMT, Donn Cave <donn at oz.net> wrote:
>Yes - only a guess, but it bites everyone at least once when trying
>to talk to another process via pipes. After each write(), where your
>Python program is writing to the ``stdin'' of the plot process, add
>a flush(), i.e. stdin.flush().
Yup, forgot that one. As usual.
>data to be written immediately anyway. You can also control this
>by the buffer size parameter to the function that creates the file
>object, or just avoid a file object altogether and write directly
>to the pipe file descriptor.
Yes? I always wondered what the "default" buffer size was.
More information about the Python-list
mailing list