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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4