Casey Bralla on 20 Feb 2014 07:02:55 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Python Syntax Question


I'm confused a little about importing modules in python.

In some cases, you add a statement like:

"import sys"


But in other cases, the syntax is:

"from sys import *"



Why the difference?


-- 

Casey Bralla

Chief Nerd in Residence
The NerdWorld Organisation

www.NerdWorld.org
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug