Did I find the right examples for you? yes no

All Samples(19)  |  Call(19)  |  Derive(0)  |  Import(0)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/cli/runner.py   plexnet(Download)
            exc_obj = dotnet.cast_from_native_object(exc_value)
            exc_inst = ootype.cast_from_object(ootype.ROOT, exc_obj)
            cls = ootype.classof(exc_value)
            return ootype.cast_to_object(cls)
        return ootype.cast_to_object(ootype.nullruntimeclass)
    def get_overflow_error(self):
        exc_type = ootype.cast_to_object(ootype.classof(self.ll_ovf_exc))
        exc_value = ootype.cast_to_object(self.ll_ovf_exc)
        return exc_type, exc_value
 
    def get_zero_division_error(self):
        exc_type = ootype.cast_to_object(ootype.classof(self.ll_zero_exc))

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llgraph/llimpl.py   plexnet(Download)
    def op_guard_class(self, _, value, expected_class):
        value = ootype.cast_from_object(ootype.ROOT, value)
        expected_class = ootype.cast_from_object(ootype.Class, expected_class)
        if ootype.classof(value) is not expected_class:
            raise GuardFailed

src/s/y/Sypy-HEAD/jit/backend/cli/runner.py   Sypy(Download)
            exc_obj = dotnet.cast_from_native_object(exc_value)
            exc_inst = ootype.cast_from_object(ootype.ROOT, exc_obj)
            cls = ootype.classof(exc_value)
            return ootype.cast_to_object(cls)
        return ootype.cast_to_object(ootype.nullruntimeclass)
    def get_overflow_error(self):
        exc_type = ootype.cast_to_object(ootype.classof(self.ll_ovf_exc))
        exc_value = ootype.cast_to_object(self.ll_ovf_exc)
        return exc_type, exc_value
 
    def get_zero_division_error(self):
        exc_type = ootype.cast_to_object(ootype.classof(self.ll_zero_exc))

src/s/y/Sypy-HEAD/jit/backend/llgraph/llimpl.py   Sypy(Download)
    def op_guard_class(self, _, value, expected_class):
        value = ootype.cast_from_object(ootype.ROOT, value)
        expected_class = ootype.cast_from_object(ootype.Class, expected_class)
        if ootype.classof(value) is not expected_class:
            raise GuardFailed

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/typesystem.py   plexnet(Download)
    def get_typeptr(self, obj):
        return ootype.classof(obj)
 
    def get_FuncType(self, ARGS, RESULT):
        FUNCTYPE = ootype.StaticMethod(ARGS, RESULT)
    def cls_of_box(self, cpu, box):
        obj = box.getref(ootype.ROOT)
        oocls = ootype.classof(obj)
        return history.ConstObj(ootype.cast_to_object(oocls))
 

src/s/y/Sypy-HEAD/jit/metainterp/typesystem.py   Sypy(Download)
    def get_typeptr(self, obj):
        return ootype.classof(obj)
 
    def get_FuncType(self, ARGS, RESULT):
        FUNCTYPE = ootype.StaticMethod(ARGS, RESULT)
    def cls_of_box(self, cpu, box):
        obj = box.getref(ootype.ROOT)
        oocls = ootype.classof(obj)
        return history.ConstObj(ootype.cast_to_object(oocls))
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/ooopimpl.py   plexnet(Download)
def op_classof(inst):
    return ootype.classof(inst)
 
def op_subclassof(class1, class2):
    return ootype.subclassof(class1, class2)

src/s/y/Sypy-HEAD/rpython/ootypesystem/ooopimpl.py   Sypy(Download)
def op_classof(inst):
    return ootype.classof(inst)
 
def op_subclassof(class1, class2):
    return ootype.subclassof(class1, class2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/rbuiltin.py   plexnet(Download)
def ll_isinstance(inst, class_):
    c1 = ootype.classof(inst)
    return ootype.subclassof(c1, class_)
 
def rtype_instantiate(hop):

src/s/y/Sypy-HEAD/rpython/ootypesystem/rbuiltin.py   Sypy(Download)
def ll_isinstance(inst, class_):
    c1 = ootype.classof(inst)
    return ootype.subclassof(c1, class_)
 
def rtype_instantiate(hop):

  1 | 2  Next