Did I find the right examples for you? yes no

All Samples(24)  |  Call(22)  |  Derive(0)  |  Import(2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/rtupletype.py   plexnet(Download)
        hints = {'immutable': True,
                 'noidentity': True}
        return ootype.Record(fields, _hints=hints)
 

src/s/y/Sypy-HEAD/rpython/ootypesystem/rtupletype.py   Sypy(Download)
        hints = {'immutable': True,
                 'noidentity': True}
        return ootype.Record(fields, _hints=hints)
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/exceptiontransform.py   plexnet(Download)
    def setup_excdata(self):
        EXCDATA = ootype.Record({'exc_type': self.lltype_of_exception_type,
                                 'exc_value': self.lltype_of_exception_value})
        self.EXCDATA = EXCDATA
 
        exc_data = ootype.new(EXCDATA)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/rrange.py   plexnet(Download)
from pypy.rpython.ootypesystem.ootype import Signed, Record, new
from pypy.rpython.rrange import AbstractRangeRepr, AbstractRangeIteratorRepr
 
RANGE = Record({"start": Signed, "stop": Signed})
RANGEITER = Record({"next": Signed, "stop": Signed})
 
RANGEST = Record({"start": Signed, "stop": Signed, "step": Signed})
RANGESTITER = Record({"next": Signed, "stop": Signed, "step": Signed})

src/s/y/Sypy-HEAD/translator/exceptiontransform.py   Sypy(Download)
    def setup_excdata(self):
        EXCDATA = ootype.Record({'exc_type': self.lltype_of_exception_type,
                                 'exc_value': self.lltype_of_exception_value})
        self.EXCDATA = EXCDATA
 
        exc_data = ootype.new(EXCDATA)

src/s/y/Sypy-HEAD/rpython/ootypesystem/rrange.py   Sypy(Download)
from pypy.rpython.ootypesystem.ootype import Signed, Record, new
from pypy.rpython.rrange import AbstractRangeRepr, AbstractRangeIteratorRepr
 
RANGE = Record({"start": Signed, "stop": Signed})
RANGEITER = Record({"next": Signed, "stop": Signed})
 
RANGEST = Record({"start": Signed, "stop": Signed, "step": Signed})
RANGESTITER = Record({"next": Signed, "stop": Signed, "step": Signed})

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/rtuple.py   plexnet(Download)
    def __init__(self, r_tuple):
        self.r_tuple = r_tuple
        self.lowleveltype = ootype.Record(
                {"iterable": r_tuple.lowleveltype, "index": ootype.Signed})
        self.ll_tupleiter = ll_tupleiter

src/s/y/Sypy-HEAD/rpython/ootypesystem/rtuple.py   Sypy(Download)
    def __init__(self, r_tuple):
        self.r_tuple = r_tuple
        self.lowleveltype = ootype.Record(
                {"iterable": r_tuple.lowleveltype, "index": ootype.Signed})
        self.ll_tupleiter = ll_tupleiter

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/test/test_optimizefindnode.py   plexnet(Download)
 
    # a plain Record
    S = ootype.Record({'a': ootype.Signed, 'b': NODE})
    ssize = cpu.typedescrof(S)
    adescr = cpu.fielddescrof(S, 'a')
    bdescr = cpu.fielddescrof(S, 'b')
    sbox = BoxObj(ootype.cast_to_object(ootype.new(S)))

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/test/test_rclass.py   plexnet(Download)
    def test_cast_object_record(self):
        B = ootype.Record({'x': ootype.Signed}) 
 
        def fn_record():
            b = ootype.new(B)
            b.x = 42
            obj = ootype.cast_to_object(b)
            b2 = ootype.cast_from_object(B, obj)
    def test_cast_object_null(self):
        A = ootype.Instance("Foo", ootype.ROOT)
        B = ootype.Record({'x': ootype.Signed}) 
 
        def fn_null():
            a = ootype.null(A)
            b = ootype.null(B)

  1 | 2  Next