[Python-ideas] [Python-Dev] The Case Against Floating Point ==
greg.ewing at canterbury.ac.nz
Wed Mar 19 01:55:53 CET 2008
Jim Jewett wrote:
> Comparison (or arithmetic) with ints is
> *usually* a bug (unless one of the operands is a constant that someone
> was too lazy to write correctly).
That depends on what you regard as "correct". Python
generally permits a duck-typed approach to numbers
wherein using integers as a subset of floats is
considered legitimate, and not lazy at all.
More information about the Python-ideas