[IronPython] fepy socket seek

Fredrik Lundh fredrik at pythonware.com
Wed Nov 15 07:43:35 CET 2006


Christopher Baus wrote:

> I found a problem with the fepy socket module.  Seek operations aren't
> supported, but they are supported in CPython (not totally sure how they do
> that).
>
> Here's an example.
>
> import socket
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> s.connect(("baus.net", 80))
> file = s.makefile('wb', 1500)
> file.write("%s %s %s\r\n" % ("HTTP", "GET", "/"))

where's the seek ?

the second argument to makefile is the requested buffer size.

</F>



More information about the Ironpython-users mailing list