Skip to content

Commit cab8c26

Browse files
author
guido
committed
builtin -> __builtin__
git-svn-id: http://svn.python.org/projects/python/trunk@3806 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 58cfca9 commit cab8c26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Demo/classes/Range.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ def __getitem__(self, i):
5353
# Small test program
5454

5555
def test():
56-
import time, builtin
56+
import time, __builtin__
5757
print range(10), range(-10, 10), range(0, 10, 2)
5858
for i in range(100, -100, -10): print i,
5959
print
6060
t1 = time.millitimer()
6161
for i in range(1000):
6262
pass
6363
t2 = time.millitimer()
64-
for i in builtin.range(1000):
64+
for i in __builtin__.range(1000):
6565
pass
6666
t3 = time.millitimer()
6767
print t2-t1, 'msec (class)'

0 commit comments

Comments
 (0)