An oddity in list comparison and element assignment

Maric Michaud maric at aristote.info
Thu Jun 1 17:54:51 EDT 2006


Le Jeudi 01 Juin 2006 18:00, michael.f.ellis at gmail.com a écrit :
> Perhaps the most fundamental notion is mathematics is that the left and
> right sides of an equation remain identical after any operation applied
> to both sides.

IMHO, you are not aware that the '=' symbol of mathematics exists in python, 
it's the 'is' assertion.

a is b
and then, do what you want with a (or b), a is b remains True.

THIS is the meaning of expr1 = expr2, but in computer science, this is not as 
important as it is in pure logic (most languages do not even provide the 'is' 
assertion).

-- 
_____________

Maric Michaud
_____________

Aristote - www.aristote.info
3 place des tapis
69004 Lyon
Tel: +33 426 880 097



More information about the Python-list mailing list