I have a class in a pyx file:
cdef class Qos:
cdef object _policies
def __cinit__(self, policies=[]):
self._c_qos = dds.dds_qos_create()
def set_policies(self, policies):
self._policies[p.id] = p
When I am importing the compiled *.pyd file I can see the class Qos
.
This works:
from dds import Qos
print(dir(Qos))
I read that cdef
ed objects are not visible from Python, why can I see `Qos?
What I would really like to do is to access the also cdef
ed attribute Qos._c_qos
or Qos._policies
from instances of Qos
, but they are not available.
Is there a difference between these cdef
s? Is there a setting on which
cdef
s are exposed and which are not?