Newbie question. Are those different objects ?

88888 Dihedral dihedral88888 at gmail.com
Fri Dec 20 12:59:57 EST 2013


On Saturday, December 21, 2013 1:10:37 AM UTC+8, rusi wrote:
> On Friday, December 20, 2013 9:30:22 PM UTC+5:30, Mark Lawrence wrote:
> 
> > On 20/12/2013 15:34, rusi wrote:
> 
> > > On Friday, December 20, 2013 8:46:31 PM UTC+5:30, dec... at msn.com wrote:
> 
> > >> y = raw_input('Enter a number:')
> 
> > >> print type y
> 
> > >> y = float(raw_input('Enter a number:'))
> 
> > >> print type y
> 
> > >> I'm assuming that y is an object. I'm also assuming that the second and the first y are different objects because they have different types.
> 
Well, in Python the assignment 
operation = of a variable named y 
in the LHS to the object of the RHS
result is more complicated 
than = in those register basd 
low level languages designed for 
fast execution speeds in compiled 
machine codes without an auto GC 
bundled with the interpreter 
in the run time.








More information about the Python-list mailing list