Type problem on Windows

Darrell Gallion darrell at dorb.com
Sat Jun 10 16:14:37 EDT 2000


On Win2k:

>>> import socket
>>> s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
>>> s.__class__
<class socket._socketobject at 88d6b8>
>>> s.__class__.__name__
'_socketobject'
>>>
>>> type(socket)
<type 'instance'>
>>> socket.__class__
<class socket._socketobject at 88d6b8>
>>>

sockets are platform dependent as expected :)

--Darrell Gallion


From: "Jerome Chan" <eviltofu at rocketmail.com>
> 
> On Unix and Mac, this works. On Win98, this bombs.
> 






More information about the Python-list mailing list