Classes and Functions - General Questions
John Salerno
johnjsal at NOSPAMgmail.com
Wed Oct 18 16:59:06 EDT 2006
More information about the Python-list mailing list
Wed Oct 18 16:59:06 EDT 2006
- Previous message (by thread): Flushing standard input
- Next message (by thread): Classes and Functions - General Questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Setash wrote: > Also, I have seen the following syntax used once before, and havent > found any documentation on it, any comments as to use, where to find > docs, etc?: > > from module import x as name > name.function() All that does is give you a method for renaming a particularly unruly module name to something more manageable, such as this: from xml.etree import ElementTree as ET Then you can use "ET" to qualify your function calls and such.
- Previous message (by thread): Flushing standard input
- Next message (by thread): Classes and Functions - General Questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list