[IronPython] fepy socket seek
Christopher Baus
christopher at baus.net
Wed Nov 15 07:38:08 CET 2006
> 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("anything\r\n")
The problem only occurs with the binary mode set, which is very strange.
The following:
file = s.makefile('w', 1500)
file.write("anything\r\n")
seems to work.
http://baus.net/
More information about the Ironpython-users
mailing list