Why do we need ==?

Wojtek Walczak gminick at hacker.pl
Mon Dec 9 14:54:06 EST 2002


Dnia Mon, 9 Dec 2002 12:54:08 -0500, Terry Reedy napisał(a):
> Another answer: when using the interpreter interactively,
> a=1 # which always executes, and
> a==1 # which prints 0, 1, or exception message
> are both both possible and sensible.
Well, '=' already has its functionality, so it's absolutely
bad idea to assign another one (i mean... functionality ;)) to it.

-- 
[ ] gminick (at) underground.org.pl  http://gminick.linuxsecurity.pl/ [ ]
[ "Po prostu lubie poranna samotnosc, bo wtedy kawa smakuje najlepiej." ]



More information about the Python-list mailing list