[Python-Dev] Now test_socket fails
Michael Gilfix
mgilfix@eecs.tufts.edu
Wed, 31 Jul 2002 14:00:58 -0400
Would a little trick like this do?
class socket:
pass
class unix_socket(socket):
pass
class windows_socket(socket):
# Old windows stuff
And then just do the namespace shuffling that's kinda already done
in socket.py.
-- Mike
On Wed, Jul 31 @ 13:40, Guido van Rossum wrote:
> (There's another change we should really make -- instead of a socket
> function, there should be a class socket whose constructor does the
> work. That's necessary so that isinstance(s, socket.socket) works on
> Windows; this currently works on Unix but not on Windows. But I don't
> have time for that now; the above patch should do what you need.)
--
Michael Gilfix
mgilfix@eecs.tufts.edu
For my gpg public key:
http://www.eecs.tufts.edu/~mgilfix/contact.html