2
#cython: embedsignature=True
11
>>> a.d = 1/2.0 + 1/4.0
12
>>> a.g = 1/2.0 + 1/4.0 + 1/8.0
19
>>> a.ro_h, a.ro_i, a.ro_l
23
>>> a.ro_f, a.ro_d, a.ro_g
26
((1+2j), (3+4j), (5+6j))
27
>>> a.ro_Zf, a.ro_Zd, a.ro_Zg
28
((1+2j), (3+4j), (5+6j))
31
>>> b.a0 #doctest: +ELLIPSIS
32
Traceback (most recent call last):
35
>>> b.b0 #doctest: +ELLIPSIS
36
Traceback (most recent call last):
39
>>> b.c0 #doctest: +ELLIPSIS
40
Traceback (most recent call last):
43
>>> isinstance(b.a1, type(None))
45
>>> isinstance(b.a2, type(None))
47
>>> isinstance(b.b1, list)
49
>>> isinstance(b.b2, list)
51
>>> isinstance(b.c1, A)
53
>>> isinstance(b.c2, A)
61
... except (TypeError, AttributeError): pass
64
... except (TypeError, AttributeError): pass
67
... except (TypeError, AttributeError): pass
70
... except (TypeError, AttributeError): pass
73
... except (TypeError, AttributeError): pass
82
cdef public long long q
85
cdef public long double g
86
cdef public float complex Zf
87
cdef public double complex Zd
88
cdef public long double complex Zg
90
cdef readonly short ro_h
91
cdef readonly int ro_i
92
cdef readonly long ro_l
93
cdef readonly long long ro_q
94
cdef readonly float ro_f
95
cdef readonly double ro_d
96
cdef readonly long double ro_g
97
cdef readonly float complex ro_Zf
98
cdef readonly double complex ro_Zd
99
cdef readonly long double complex ro_Zg
107
self.ro_d = 1/2.0 + 1/4.0
108
self.ro_g = 1/2.0 + 1/4.0 + 1/8.0
117
cdef public object a1
118
cdef readonly object a2
122
cdef readonly list b2
129
self.b0 = self.b1 = self.b2 = []
130
self.c0 = self.c1 = self.c2 = A()