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