Re: [Tutor] is an alias a variable

2014-01-31 Thread Steven D'Aprano
On Fri, Jan 31, 2014 at 09:36:13PM +, Alan Gauld wrote: > 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

Re: [Tutor] is an alias a variable

2014-01-31 Thread Alan Gauld
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

Re: [Tutor] is an alias a variable

2014-01-31 Thread emile
On 01/31/2014 01:57 AM, Ian D wrote: Hi is import longModuleName as lmn or lmn = longModuleName creating an alias or assigning to a variable. or both? Yes (I'm not goint to get into the symantic issues of what's an alias or variable) Python 2.7.3 (default, Nov 2 2012, 09:35:42) [GC

[Tutor] is an alias a variable

2014-01-31 Thread Ian D
Hi is import longModuleName as lmn or lmn = longModuleName creating an alias or assigning to a variable. or both? Thanks ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscripti