quick win32 pipe and objects question
dsavitsk
dsavitsk at e-coli.net
Fri Mar 22 14:41:24 EST 2002
More information about the Python-list mailing list
Fri Mar 22 14:41:24 EST 2002
- Previous message (by thread): yenc encoding?
- Next message (by thread): quick win32 pipe and objects question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 more stable). Lastly, putting a pause between writes seemed to help too ... >>> for i in range(10): ... time.sleep(0.5) ... 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 ;-) -d "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 > > > > > >
- Previous message (by thread): yenc encoding?
- Next message (by thread): quick win32 pipe and objects question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list