Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
62326f21
Commit
62326f21
authored
Jan 26, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builtin -> __builtin__
parent
6dfccb34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Demo/classes/Range.py
Demo/classes/Range.py
+2
-2
No files found.
Demo/classes/Range.py
View file @
62326f21
...
@@ -53,7 +53,7 @@ class Range:
...
@@ -53,7 +53,7 @@ class Range:
# Small test program
# Small test program
def
test
():
def
test
():
import
time
,
builtin
import
time
,
__builtin__
print
range
(
10
),
range
(
-
10
,
10
),
range
(
0
,
10
,
2
)
print
range
(
10
),
range
(
-
10
,
10
),
range
(
0
,
10
,
2
)
for
i
in
range
(
100
,
-
100
,
-
10
):
print
i
,
for
i
in
range
(
100
,
-
100
,
-
10
):
print
i
,
print
print
...
@@ -61,7 +61,7 @@ def test():
...
@@ -61,7 +61,7 @@ def test():
for
i
in
range
(
1000
):
for
i
in
range
(
1000
):
pass
pass
t2
=
time
.
millitimer
()
t2
=
time
.
millitimer
()
for
i
in
builtin
.
range
(
1000
):
for
i
in
__builtin__
.
range
(
1000
):
pass
pass
t3
=
time
.
millitimer
()
t3
=
time
.
millitimer
()
print
t2
-
t1
,
'msec (class)'
print
t2
-
t1
,
'msec (class)'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment