Commit 0e85a140 authored by Robert Bradshaw's avatar Robert Bradshaw

merge

parents 6cb460b6 96b73b35
__doc__ = u"""
>>> ret = repeat_iter()
>>> for s in ret:
... print s
a
a
b
b
c
c
"""
def repeat_iter():
cdef dict e
cdef unicode s
ret = []
e = {u"A": u"a", u"B": u"b", u"C": u"c"}
for s in e.itervalues():
ret.append(s)
for s in e.itervalues():
ret.append(s)
ret.sort()
return ret
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