Stream Abstractions in python?
Daniel Nielsen
djn at daimi.au.dk
Tue Mar 11 07:52:19 EST 2003
On 11/03-03 13.41, Irmen de Jong wrote:
> Daniel Nielsen wrote:
[snip]
>
> You should be looking on www.python.ORG instead.
Sorry. It was a typo. I have been looking around python.org.
> For instance,
> http://www.python.org/doc/current/lib/module-socket.html
> http://www.python.org/doc/current/lib/module-pickle.html
It seems pickle is able to do what I want.
> http://www.python.org/doc/current/lib/bltin-file-objects.html
>
> >Note: I do not require it to be compatible with java's streams, I'd
> >just like the convenience of readUTF/writeUTF and friends.
>
> If you want transparent object/data communication, I strongly
> suggest you have a look at http://pyro.sourceforge.net
>
> Pyro uses pickling over TCP socket connections to transparently
> implement remote method invocation, much like Java RMI.
Pyro looks like it has a lot of the stuff I need. I will look into
it.
> You could also implement your own protocol if you wish,
> where you use the pickle module to marshall your data objects
> and use the makefile method of your socket object to create
> a file-like stream to write your data to.
That was the plan, but with pyro... I think I will stick with that.
Thanks for the reply!
/Daniel
--
There are no great men, only great challenges that ordinary men are forced
by circumstances to meet.
-- Admiral William Halsey
More information about the Python-list
mailing list