Cython __cinit__

cdef classes are awesome if you want lightweight data structures, for example, when you need millions of them. These cython classes have some special methods, the most basic of which is the __cinit__ method which is the analog of the __init__ method of regular Python classes. The __cinit__ method is practical because it lets you …

Advertisements