[Python-checkins] r57291 - peps/trunk/pep-3141.txt

alex.martelli python-checkins at python.org
Wed Aug 22 23:38:54 CEST 2007


Author: alex.martelli
Date: Wed Aug 22 23:38:54 2007
New Revision: 57291

Modified:
   peps/trunk/pep-3141.txt
Log:
The "i>0 iff x>0" in the previous PEP version is incorrect (we do want to
trunc 0.1 to 0, for example); tried clarifying the task.



Modified: peps/trunk/pep-3141.txt
==============================================================================
--- peps/trunk/pep-3141.txt	(original)
+++ peps/trunk/pep-3141.txt	Wed Aug 22 23:38:54 2007
@@ -181,8 +181,11 @@
             """Truncates self to an Integral.
 
             Returns an Integral i such that:
-              * i>0 iff self>0
+              * i>=0 iff self>0
               * abs(i) <= abs(self).
+              * for any Integral j satisfying the first two conditions,
+                abs(i) >= abs(j) [i.e. i has "maximal" abs among those]
+            i.e. "truncate towards 0".
             """
             raise NotImplementedError
 


More information about the Python-checkins mailing list