[pypy-svn] pypy default: Rpythonify, hopefully

alex_gaynor commits-noreply at bitbucket.org
Thu Jan 20 23:10:20 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r41100:df2cd74e6c03
Date: 2011-01-20 16:10 -0600
http://bitbucket.org/pypy/pypy/changeset/df2cd74e6c03/

Log:	Rpythonify, hopefully

diff --git a/pypy/module/itertools/interp_itertools.py b/pypy/module/itertools/interp_itertools.py
--- a/pypy/module/itertools/interp_itertools.py
+++ b/pypy/module/itertools/interp_itertools.py
@@ -1117,7 +1117,7 @@
             raise OperationError(space.w_ValueError,
                 space.wrap("r must be non-negative")
             )
-        indices = list(xrange(r))
+        indices = range(r)
         return W_Combinations(space, pool_w, indices, r)
 
     @unwrap_spec("self", ObjSpace)


More information about the Pypy-commit mailing list