What am I missing?
####
class mysocket():
import socket
def __init__(self, sock=None);
if sock is None:
self.sock = socket.socket(socket.socket.AF_NET,
socket.socket.SOCK_STREAM)
else:
self.sock = sock#### Error: NameError: global name "socket" is not defined. _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
