is there a difference between one line and many lines

Westley Martínez anikom15 at gmail.com
Thu Apr 21 10:16:52 EDT 2011


On Thu, Apr 21, 2011 at 02:38:52AM -0700, vino19 wrote:
> Hello, I'm a newbie.
> What's the defference between
> 
> >>>a=-6; b=-6; a is b
> >>>True
> 
> and
> 
> >>>a=-6
> >>>b=-6
> >>>a is b
> >>>False
> 
> ?
> -- 
> http://mail.python.org/mailman/listinfo/python-list

Depends on how the interpreter was implemented.



More information about the Python-list mailing list