@unbox(IndexType)
def unbox_index(typ, obj, c):
 data = c.pyapi.object_getattr_string(obj, '_data')
 index = make_index(c.context, c.builder, typ)
 index.data = c.unbox(typ.as_array, data).value
 return NativeValue(index._getvalue())

@ unbox ( IndexType ) def unbox_index ( typ , obj , c ) : data = c . pyapi . object_getattr_string ( obj , '_data' ) index = make_index ( c . context , c . builder , typ ) index . data = c . unbox ( typ . as_array , data ) . value return NativeValue ( index . _getvalue ( ) )
convert a index object to a native structure .