A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-June/045128.html below:

[Python-Dev] Comparing heterogeneous types

[Python-Dev] Comparing heterogeneous types [Python-Dev] Comparing heterogeneous typesAndrew Koenig ark-mlist at att.net
Wed Jun 2 11:32:50 EDT 2004
> Time for you to bite the bullet.  Guido has all-but-decreed that the
> future of comparisons is that TypeError will be raised for all operators
> other than == and <> for types that have no appropriate relationship
> system.

When that happens, I hope that comparisons between long and float will
either raise TypeError or behave as if they are done in infinite precision.
Right now, the long gets converted to float, which may lose precision; as a
result, it is possible to have values such that a==b, b==c, and a!=c.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4