2 >>> type(smoketest_set()) is not list
4 >>> type(smoketest_set()) is _set
6 >>> type(smoketest_list()) is _set
9 >>> sorted(smoketest_set())
11 >>> sorted(smoketest_list())
16 >>> sorted(iterdict())
22 # Py2.3 doesn't have the set type, but Cython does :)
30 @cython.test_fail_if_path_exists("//SimpleCallNode//ComprehensionNode")
31 @cython.test_assert_path_exists("//ComprehensionNode",
32 "//ComprehensionNode//ComprehensionAppendNode")
39 def __repr__(self): return u"A"
40 def __richcmp__(one, other, op): return one is other
41 def __hash__(self): return id(self) % 65536
45 return {obj for obj in {A(), A(), A()}}
48 cdef dict d = dict(a=1,b=2,c=3)
49 return {d[key] for key in d}