is there a difference between one line and many lines

Heiko Wundram modelnine at modelnine.org
Thu Apr 21 12:19:18 CEST 2011


Am 21.04.2011 11:59, schrieb Heiko Wundram:
> Am 21.04.2011 11:55, schrieb vino19:
>> I am asking about what happens in Python interpreter? Why is there a difference between running one line like "a=1;b=1" and two lines like "a=1 \n b=1"? Does it decide to locate memory in different types depend on a code?
> 
> There is no difference between the two.
> ...

Erm, sorry, forget my post. I misread a=-6 as a-=6, etc... So: what
Chris said. Anyway, there is semantically no difference between the two,
and that stands.

-- 
--- Heiko.



More information about the Python-list mailing list