1 ########## TestClass ##########
2 # These utilities are for testing purposes
5 cdef object __pyx_test_dep
(object)
7 @cname
('__pyx_TestClass')
8 cdef class TestClass
(object):
11 def __init__
(self, int value
):
15 return 'TestClass(%d)' % self.value
17 cdef cdef_method
(self, int value
):
18 print 'Hello from cdef_method', value
20 cpdef cpdef_method
(self, int value
):
21 print 'Hello from cpdef_method', value
23 def def_method
(self, int value
):
24 print 'Hello from def_method', value
27 cdef cdef_cname_method
(self, int value
):
28 print "Hello from cdef_cname_method", value
31 cpdef cpdef_cname_method
(self, int value
):
32 print "Hello from cpdef_cname_method", value
35 def def_cname_method
(self, int value
):
36 print "Hello from def_cname_method", value
38 @cname
('__pyx_test_call_other_cy_util')
43 @cname
('__pyx_TestClass_New')
44 cdef _testclass_new
(int value
):
45 return TestClass
(value
)
47 ########### TestDep ##########
49 @cname
('__pyx_test_dep')
53 ########## TestScope ##########
55 @cname
('__pyx_testscope')
56 cdef object _testscope
(int value
):
57 return "hello from cython scope, value=%d" % value
59 ########## View.TestScope ##########
61 @cname
('__pyx_view_testscope')
62 cdef object _testscope
(int value
):
63 return "hello from cython.view scope, value=%d" % value