quick win32 pipe and objects question
dsavitsk at e-coli.net
Fri Mar 22 20:41:24 CET 2002
i seems that the pipe can only hold serialized data, at least that is what
the error message said.
It also seems that if several clients are writing to the pipe at the same
time, or in quick succession, that reading the data is best done with
cPickle to avoid errors (i have no numbers to justify this, it just seemed
Lastly, putting a pause between writes seemed to help too ...
>>> for i in range(10):
... r = win32pipe.CallNamedPipe(pipename, i, 512, 0)
which leads me to think that a single named pipe just doesn't scale well,
which is not surprising as Mark H. said it wouldn't on pg 353 ;-)
"Harald Schneider" <h_schneider at marketmix.com> wrote in message
news:a7f4l7$g2n$04$1 at news.t-online.com...
> Sorry for this newby-question .. why pickle ?
> "dsavitsk" <dsavitsk at e-coli.net> schrieb im Newsbeitrag
> news:X0sm8.575$d7.169869 at newssrv26.news.prodigy.com...
> > when writing and reading from a pipe, is it okay to do something like
> > >>> t = (0, 1, 2, 3)
> > >>> r = win32pipe.CallNamedPipe(pipename, t, 512, 0)
> > of should i pickle t first?
> > -d
More information about the Python-list