
March 19, 2008
12:55 a.m.
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. -- Greg