import x as y
Greg Ewing
see at my.signature
Sun Oct 29 23:08:30 EST 2000
Tyler Eaves wrote:
>
> Just wondering, as a python 'advanced' novice, is there any advantage
> of:
> import x as y
> ratheer than
> import x
> y=x
It avoids spuriously leaving the name x in the namespace.
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list