l.sort()
return l
+def iteritems_listcomp(dict d):
+ cdef list l = [(k,v) for k,v in d.iteritems()]
+ l.sort()
+ return l
+
def iterkeys(dict d):
l = []
for k in d.iterkeys():
l.sort()
return l
+def iterdict_listcomp(dict d):
+ cdef list l = [k for k in d]
+ l.sort()
+ return l
+
def itervalues(dict d):
l = []
for v in d.itervalues():
l.append(v)
l.sort()
return l
+
+def itervalues_listcomp(dict d):
+ cdef list l = [v for v in d.itervalues()]
+ l.sort()
+ return l