I have a Python class based on slots to save space
class my_class(object):
__slots__ = ('x', 'y')
def __init__(self, x, y):
self.x = x
self.y = y
I need to access objects of this class from a C function. When I print
obj->ob_type->tp_name
from C, I see my_class
but can't find a way of accessing the member values on the instance.