5.3.5 Public and Private Variables

To expose a variable to external Python, use cdef public, e.g.,
cdef class MyRing:
    cdef public Integer characteristic
Use readonly if you want to enable only readonly access.
cdef class MyRing:
    cdef readonly Integer characteristic

See About this document... for information on suggesting changes.