From bf80cb4c37d3f2bfb94fd2b3ba19661a08749d7f Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Mon, 19 Mar 2001 19:36:46 +0000 Subject: [PATCH] Changes discussed in the mailing list. --- pep-0237.txt | 3 +++ pep-0238.txt | 1 + pep-0239.txt | 9 +++------ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pep-0237.txt b/pep-0237.txt index bb111466e..9465b60f1 100644 --- a/pep-0237.txt +++ b/pep-0237.txt @@ -111,6 +111,9 @@ Open Issues Will unification of types and classes help with a more straightforward implementations? + Define an C API that can be used to find out what the representation of an + int is. + Copyright diff --git a/pep-0238.txt b/pep-0238.txt index 60e06de1b..0a208d4db 100644 --- a/pep-0238.txt +++ b/pep-0238.txt @@ -89,6 +89,7 @@ Open Issues Should the // operator be renamed to "div"? + Should the // be made into a function called "div"? References diff --git a/pep-0239.txt b/pep-0239.txt index cec769a3c..edf5ba3dc 100644 --- a/pep-0239.txt +++ b/pep-0239.txt @@ -37,15 +37,12 @@ RationalType floats and complexes. The following attributes will be supported: .numerator and - .denominator. The language definition will not define these other - then that: + .denominator. The language definition will promise that r.denominator * r == r.numerator - In particular, no guarantees are made regarding the GCD or the - sign of the denominator, even though in the proposed - implementation, the GCD is always 1 and the denominator is always - positive. + that the GCD of the numerator and the denominator is 1 and that + the denominator is positive. The method r.trim(max_denominator) will return the closest rational s to r such that abs(s.denominator) <= max_denominator.