C)
import socket
import struct
;-)
D) If you really can't stand using module identifiers all the time
import socket
import struct
from socket import *
from struct import *
Now you can use either unqualified or qualified names, as you see fit.
E) If the problem is just that you don't like typing long names, you
could do
import socket; so = socket
import struct; st = struct
(Not that I recommend this, but it is an interesting illustration of
how Python name spaces work)
Chris
-- Chris Hoffmann DataViews Corporation choffman@dvcorp.com 47 Pleasant St. Northampton MA 01060 GCS d H s+: g+ ?p a w v+ C+$ US+ P++(++++) L E+(+++) N++ K W--->-- M+ V- po- Y+ t+ 5+(+++) Jx R G tv b+++ D+ B-() e+++ u++ h---- f r+++ n--- y++++