[pypy-svn] r17438 - pypy/dist/pypy/rpython

tismer at codespeak.net tismer at codespeak.net
Sat Sep 10 01:21:20 CEST 2005


Author: tismer
Date: Sat Sep 10 01:21:19 2005
New Revision: 17438

Modified:
   pypy/dist/pypy/rpython/rrange.py
Log:
not sure about this comment, would like to discuss this
(but it has low priority)

# XXX I think range could be simplified and generalized by storing the
# range length and no stop value at all.
# The iterator would always use indexing, which implies a multiplication
# in the range, but that's low cost.



Modified: pypy/dist/pypy/rpython/rrange.py
==============================================================================
--- pypy/dist/pypy/rpython/rrange.py	(original)
+++ pypy/dist/pypy/rpython/rrange.py	Sat Sep 10 01:21:19 2005
@@ -54,11 +54,6 @@
 #
 #  Low-level methods.
 
-# XXX I think range could be simplified and generalized by storing the
-# range length and a current index, but no stop value at all.
-# The iterator would always use indexing, which implies a multiplication
-# in the range, but that's low cost.
-
 def _ll_rangelen(start, stop, step):
     if step > 0:
         result = (stop - start + (step-1)) // step



More information about the Pypy-commit mailing list