Classes and Functions - General Questions
John Salerno
johnjsal at NOSPAMgmail.com
Wed Oct 18 16:59:06 EDT 2006
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.
More information about the Python-list
mailing list