[Tutor] is an alias a variable
Alan Gauld
alan.gauld at btinternet.com
Fri Jan 31 22:36:13 CET 2014
On 31/01/14 09:57, Ian D wrote:
> import longModuleName as lmn
>
> or
>
> lmn = longModuleName
>
> creating an alias or assigning to a variable..... or both?
variables in Python are just names.
There is no concept of an alias as such, its just another
name referring to the same object.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list