[Python-Dev] cpython: Remove some extraneous parentheses and swap the comparison order to

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Jun 8 17:14:04 CEST 2011


On Wed, Jun 8, 2011 at 7:04 AM, Steven D'Aprano <steve at pearwood.info> wrote:
..
>> Whereas I read it as 'has the value' (or just 'is' ;=).
>
> Am I the only one who reads == as "equals"?

If you are, you are the only one who reads it correctly.  Consider

>>> a = 2
>>> a == 2.0
True


More information about the Python-Dev mailing list