Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
6d083814
Commit
6d083814
authored
Nov 19, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended for-loop test case
parent
81c5248e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
tests/run/r_forloop.pyx
tests/run/r_forloop.pyx
+28
-3
No files found.
tests/run/r_forloop.pyx
View file @
6d083814
...
@@ -4,21 +4,46 @@ __doc__ = u"""
...
@@ -4,21 +4,46 @@ __doc__ = u"""
Spam!
Spam!
Spam!
Spam!
Spam!
Spam!
Spam!
>>> go_c()
>>> go_c()
Spam!
Spam!
Spam!
Spam!
Spam!
Spam!
Spam!
Spam!
>>> go_list()
Spam!
Spam!
Spam!
Spam!
>>> go_tuple()
Spam!
Spam!
Spam!
Spam!
Spam!
"""
"""
def
go_py
():
def
go_py
():
for
i
in
range
(
5
):
for
i
in
range
(
4
):
print
u"Spam!"
print
u"Spam!"
def
go_c
():
def
go_c
():
cdef
int
i
cdef
int
i
for
i
in
range
(
5
):
for
i
in
range
(
4
):
print
u"Spam!"
def
go_list
():
cdef
list
l
=
range
(
4
)
for
i
in
l
:
print
u"Spam!"
def
go_tuple
():
cdef
tuple
t
=
tuple
(
range
(
4
))
for
i
in
t
:
print
u"Spam!"
def
go_dict
():
cdef
dict
d
=
dict
(
zip
(
range
(
4
),
range
(
4
)))
for
i
in
d
:
print
u"Spam!"
print
u"Spam!"
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