bfb6047a50f9db11deec64f6b7261e9a33245dba
[cython.git] / tests / run / typeddefaultargT373.pyx
1 import math
2
3 cdef class MyClass:
4     """
5     >>> x=MyClass()
6     4
7     """
8     def __cinit__(self, int arg=2*2):
9         print arg
10
11 cdef class MyOtherClass:
12     """
13     >>> x=MyOtherClass()
14     8
15     """
16     def __cinit__(self, int arg=4*int(math.sqrt(4))):
17         print arg