2 from cpython.complex cimport complex
4 def complex_attributes():
6 >>> complex_attributes()
10 return (c.real, c.imag)
12 def complex_attributes_assign():
14 >>> complex_attributes_assign()
18 c.cval.real, c.cval.imag = 10, 20
19 return (c.real, c.imag)
21 def complex_cstruct_assign():
23 >>> complex_cstruct_assign()
28 cval.real, cval.imag = 10, 20
29 return (c.real, c.imag)