![]() |
|
|
+ Search |
![]()
|
Jun 10th, 2000 16:22
unknown unknown, Moshe Zadka, Jerome Chan
Use the type() function: >>> type(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) <type 'socket'> In the socket documentation: if type(s)==socket.SocketType: print "hello"