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