diff --git a/pep-0228.txt b/pep-0228.txt index 79d6a5e85..83956aeb4 100644 --- a/pep-0228.txt +++ b/pep-0228.txt @@ -16,11 +16,10 @@ Abstract the C rationale for the numerical model is that it is very similar to what happens at the hardware level, that rationale does not apply to Python. So, while it is acceptable to C programmers that - 2/3 == 0, it is surprising to Python programmers. + 2/3 == 0, it is surprising to many Python programmers. NOTE: in the light of recent discussions in the newsgroup, the - motivation in this PEP (and details) need to be extended. I'll do - that ASAP. + motivation in this PEP (and details) need to be extended. Rationale @@ -120,6 +119,11 @@ Unresolved Issues How do we deal with IEEE 754 operations? (probably, isnan/isinf should be methods) + On 64-bit machines, comparisons between ints and floats may be + broken when the comparison involves conversion to float. Ditto + for comparisons between longs and floats. This can be dealt with + by avoiding the conversion to float. (Due to Andrew Koenig.) + Copyright