Esempio n. 1
0
    def __init__(self, obj, tag):
        if not isinstance(obj, VReference):
            if isinstance(obj, VNativeObject):
                if obj._v_native_tag() != tag:
                    raise VTaggedParseError('VNative tag mismatch')
            else:
                raise VTaggedParseError('Not a VReference or VNativeObject')

        VEntity.__init__(self)
        self._v_int_native_obj = obj._v_proxy()
        self._v_tag = tag
        self._v_active = False
Esempio n. 2
0
 def __init__(self, dim, data=None, fill=None, lazy=True):
     VEntity.__init__(self)
     VMultiArray.__init__(self, dim, data, fill, lazy)