Newbie on importing

jwsacksteder at ramprecision.com jwsacksteder at ramprecision.com
Fri Jun 20 14:11:41 EDT 2003


That example is still less than clear...

>import sys
>
>Imports the module named 'sys'.

Which get me access to what in 'sys'?

>from sys import *
>
>Imports all names from sys (including names referring to functions).

Likewise, what additional thing are available when doing this? 
Is 'import sys' a subset of 'from sys import *'?






More information about the Python-list mailing list