On 2/8/2011 8:38 AM, Peter Otten wrote:
import socket sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
If you do not like typing 'socket' so many times: import socket as so # or pick own abbreviation sock = so.socket(so.AF_UNIX, sot.SOCK_STREAM)
Have you worked through the tutorial http://docs.python.org/tutorial/index.html
It is worth reading through more than once. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list