lib/builtins.py | raw changeset files shortlog |
1.1 --- a/lib/builtins.py Wed Aug 11 00:04:11 2010 +0200 1.2 +++ b/lib/builtins.py Sun Aug 15 21:49:47 2010 +0200 1.3 @@ -460,10 +460,7 @@ 1.4 1.5 "Implementation of range." 1.6 1.7 - l = [] 1.8 - for i in xrange(start_or_end, end, step): 1.9 - l.append(i) 1.10 - return l 1.11 + return list(xrange(start_or_end, end, step)) 1.12 1.13 def raw_input(prompt=None): pass 1.14 def reduce(function, sequence, initial=None): pass