Proposal: === and !=== operators

Chris Angelico rosuav at
Sun Jul 13 01:01:09 CEST 2014

On Sun, Jul 13, 2014 at 4:14 AM, Johannes Bauer <dfnsonfsduifb at> wrote:
> Bullshit. Comparing floats by their representation is *generally* a bad
> idea because of portability issues. You don't know if IEEE754 is used to
> represent floats on the systems that your code is used on.

No, you don't, but I think you can safely assume that 1.0 == 1.0 on
any system that Python runs on.


More information about the Python-list mailing list