Python Rocks! - get rid of colons

Mikael Olofsson mikael at isy.liu.se
Wed Jan 19 07:04:44 EST 2000


On 19-Jan-00 Sposhua wrote:
 >  (oh, and wouln't it make life easier to change == to = and let 
 >  python work out when it is assingment and when it is comparison?)

We had this discussion a few months ago. Today

>>>a=b=c

makes both a and b equal to c (or the same as). But

>>>a=b==c

tests if b==c and throws the result to a. With your proposal, what would

>>>a=b=c

be?

/Mikael

-----------------------------------------------------------------------
E-Mail:  Mikael Olofsson <mikael at isy.liu.se>
WWW:     http://www.dtr.isy.liu.se/dtr/staff/mikael
Phone:   +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date:    19-Jan-00
Time:    12:59:42

This message was sent by XF-Mail.
-----------------------------------------------------------------------



More information about the Python-list mailing list