Re: Python/NT and winsock under win32s

Farzad FARID (farzy@farzy.via.ecp.fr)
10 Feb 1995 09:53:51 GMT

Hammond, Mark (MHammond@jm.cmutual.com.au) wrote:

: > Not that it would do much good anyway, unless somebody has a fix to
: > make sock.makefile() to work. All the lib stuff (nntplib, ftplib, etc.)
: > rely on makefile() to map the socket to a file.
: Yeah. This is a bummer. Ron Forrester (?) (rjf@aurora.pcg.com) had a
: solution for this that only works on NT. I think the only win32s way to do
: this will be another hack, similar to what has been done on the mac by
: Jack@cwi.nl (?).

In my attempt to add the socket module to the OS/2 version of Python
I created a new object called 'filesock' that returned a pseudo file
object under OS/2 when sock.makefile() was called. I tested it briefly
with httplib and ftplib and it worked fine.
If you want to have a look I can send you the piece of code.

-- 

* Farzad FARID faridf6@cti.ecp.fr Ecole Centrale Paris *

"The Army is a place where you get up early in the morning to be yelled at by people with short haircuts and tiny brains." -- Dave Barry