[Python-checkins] python/nondist/peps pep-3000.txt,1.11,1.12

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sat Mar 5 20:38:45 CET 2005


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9499

Modified Files:
	pep-3000.txt 
Log Message:
Add mention of trunc() and its companion, __trunc__().


Index: pep-3000.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-3000.txt,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- pep-3000.txt	5 Mar 2005 19:32:57 -0000	1.11
+++ pep-3000.txt	5 Mar 2005 19:38:42 -0000	1.12
@@ -87,6 +87,9 @@
 * Make ``range()`` return an iterator
 * Relevant functions should consume iterators (e.g. ``min()``,
   ``max()``)
+* Introduce ``trunc()``, which would call the ``__trunc__()`` method on its
+  argument; suggested use if for objects like float where calling ``__int__()``
+  has data loss, but an integral representation is still desired [8]_
 
 To be removed:
 
@@ -140,6 +143,10 @@
 .. [7] python-dev email ("Let's get rid of unbound methods")
    http://mail.python.org/pipermail/python-dev/2005-January/050625.html
 
+.. [8] python-dev email( "Fixing _PyEval_SliceIndex so that integer-like
+   objects can be used")
+   http://mail.python.org/pipermail/python-dev/2005-February/051674.html
+
 
 Copyright
 =========



More information about the Python-checkins mailing list