Skip to content

Commit

Permalink
builtin -> __builtin__
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jan 26, 1994
1 parent 6dfccb3 commit 62326f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Demo/classes/Range.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ def __getitem__(self, i):
# Small test program

def test():
import time, builtin
import time, __builtin__
print range(10), range(-10, 10), range(0, 10, 2)
for i in range(100, -100, -10): print i,
print
t1 = time.millitimer()
for i in range(1000):
pass
t2 = time.millitimer()
for i in builtin.range(1000):
for i in __builtin__.range(1000):
pass
t3 = time.millitimer()
print t2-t1, 'msec (class)'
Expand Down

0 comments on commit 62326f2

Please sign in to comment.