Commit 6d083814 authored by Stefan Behnel's avatar Stefan Behnel

extended for-loop test case

parent 81c5248e
......@@ -4,21 +4,46 @@ __doc__ = u"""
Spam!
Spam!
Spam!
Spam!
>>> go_c()
Spam!
Spam!
Spam!
Spam!
>>> go_list()
Spam!
Spam!
Spam!
Spam!
>>> go_tuple()
Spam!
Spam!
Spam!
Spam!
"""
def go_py():
for i in range(5):
for i in range(4):
print u"Spam!"
def go_c():
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!"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment