Where and when does Python say this to you?
Terry Reedy
tjreedy at udel.edu
Tue Feb 8 13:25:16 EST 2011
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
More information about the Python-list
mailing list