Did I find the right examples for you? yes no

All Samples(59)  |  Call(57)  |  Derive(0)  |  Import(2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llgraph/llimpl.py   plexnet(Download)
            # XXX normalize?
            ptr = str(cast_int_to_adr(memocast, x))
        elif isinstance(ootype.typeOf(x), ootype.OOType):
            return repr(x)
        else:
                        elif type(x) is float:
                            boxedargs.append(BoxFloat(x))
                        elif isinstance(ootype.typeOf(x), ootype.OOType):
                            boxedargs.append(BoxObj(ootype.cast_to_object(x)))
                        else:
        _, T = TYPE._lookup_field(fieldname)
        obj = ootype.cast_from_object(TYPE, obj)
        if isinstance(ootype.typeOf(newvalue), ootype.OOType):
            newvalue = ootype.cast_from_object(T, newvalue)
        elif isinstance(T, lltype.Primitive):
    def op_setarrayitem_gc(self, typedescr, obj, index, objnewvalue):
        array = ootype.cast_from_object(typedescr.ARRAY, obj)
        if ootype.typeOf(objnewvalue) == ootype.Object:
            newvalue = ootype.cast_from_object(typedescr.TYPE, objnewvalue)
        else:

src/s/y/Sypy-HEAD/jit/backend/llgraph/llimpl.py   Sypy(Download)
            # XXX normalize?
            ptr = str(llmemory.cast_int_to_adr(x))
        elif isinstance(ootype.typeOf(x), ootype.OOType):
            return repr(x)
        else:
        _, T = TYPE._lookup_field(fieldname)
        obj = ootype.cast_from_object(TYPE, obj)
        if isinstance(ootype.typeOf(newvalue), ootype.OOType):
            newvalue = ootype.cast_from_object(T, newvalue)
        elif isinstance(T, lltype.Primitive):
    def op_setarrayitem_gc(self, typedescr, obj, index, objnewvalue):
        array = ootype.cast_from_object(typedescr.ARRAY, obj)
        if ootype.typeOf(objnewvalue) == ootype.Object:
            newvalue = ootype.cast_from_object(typedescr.TYPE, objnewvalue)
        else:

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/ooopimpl.py   plexnet(Download)
def is_inst(inst):
    T = ootype.typeOf(inst)
    return T is ootype.Object or T is ootype.Class or\
        isinstance(T, (ootype.Instance,
                       ootype.BuiltinType,

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/history.py   plexnet(Download)
    def __init__(self, value):
        assert ootype.typeOf(value) is ootype.Object
        self.value = value
 
    def clonebox(self):
    def __init__(self, value=ootype.NULL):
        assert ootype.typeOf(value) is ootype.Object
        self.value = value
 
    def clonebox(self):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/annotation/builtin.py   plexnet(Download)
def new(I):
    assert I.is_constant()
    i = ootype.new(I.const)
    r = SomeOOInstance(ootype.typeOf(i))
    return r
def null(I_OR_SM):
    assert I_OR_SM.is_constant()
    null = ootype.null(I_OR_SM.const)
    r = lltype_to_annotation(ootype.typeOf(null))
    return r

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/cli/runner.py   plexnet(Download)
    def __init__(self, SELFTYPE, methname):
        from pypy.jit.backend.llgraph.runner import boxresult, make_getargs
        _, meth = SELFTYPE._lookup(methname)
        METH = ootype.typeOf(meth)
        getargs = make_getargs(METH.ARGS)

src/s/y/Sypy-HEAD/rpython/ootypesystem/ooopimpl.py   Sypy(Download)
def is_inst(inst):
    T = ootype.typeOf(inst)
    return T is ootype.Object or T is ootype.Class or\
        isinstance(T, (ootype.Instance,
                       ootype.BuiltinType,

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/rtuple.py   plexnet(Download)
def ll_tuplenext(iter):
    # for iterating over length 1 tuples only!
    t = iter.iterable
    if t:
        iter.iterable = ootype.null(ootype.typeOf(t))

src/s/y/Sypy-HEAD/jit/metainterp/history.py   Sypy(Download)
    def __init__(self, value):
        assert ootype.typeOf(value) is ootype.Object
        self.value = value
 
    def clonebox(self):
    def __init__(self, value=ootype.NULL):
        assert ootype.typeOf(value) is ootype.Object
        self.value = value
 
    def forget_value(self):

src/s/y/Sypy-HEAD/annotation/builtin.py   Sypy(Download)
def new(I):
    assert I.is_constant()
    i = ootype.new(I.const)
    r = SomeOOInstance(ootype.typeOf(i))
    return r
def null(I_OR_SM):
    assert I_OR_SM.is_constant()
    null = ootype.null(I_OR_SM.const)
    r = lltype_to_annotation(ootype.typeOf(null))
    return r

  1 | 2 | 3 | 4  Next