blob: 1aa0ccc11b91bd4d88592e65d0a8d9b739c6bd28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
cdef class Animal:
cdef int number_of_legs
cdef dict __dict__
def __cinit__(self, int number_of_legs):
self.number_of_legs = number_of_legs
dog = Animal(4)
dog.has_tail = True
|