Did I find the right examples for you? yes no

All Samples(32)  |  Call(0)  |  Derive(15)  |  Import(17)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/std/smallintobject.py   plexnet(Download)
from pypy.objspace.std.inttype import wrapint
from pypy.objspace.std.intobject import W_IntObject
from pypy.rlib.objectmodel import UnboxedValue
 
# XXX this is a complete copy of intobject.py.  Find a better but still
# XXX annotator-friendly way to share code...
 
 
class W_SmallIntObject(W_Object, UnboxedValue):

src/s/y/Sypy-HEAD/objspace/std/smallintobject.py   Sypy(Download)
from pypy.objspace.std.intobject import W_AbstractIntObject, W_IntObject
from pypy.interpreter.error import OperationError
from pypy.rlib.objectmodel import UnboxedValue
from pypy.rlib.rbigint import rbigint
from pypy.rlib.rarithmetic import r_uint
from pypy.tool.sourcetools import func_with_new_name
from pypy.objspace.std.inttype import wrapint
 
class W_SmallIntObject(W_AbstractIntObject, UnboxedValue):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/rclass.py   plexnet(Download)
def buildinstancerepr(rtyper, classdef, gcflavor='gc'):
    from pypy.rlib.objectmodel import UnboxedValue
    from pypy.objspace.flow.model import Constant
 
    if classdef is None:

src/s/y/Sypy-HEAD/rpython/rclass.py   Sypy(Download)
def buildinstancerepr(rtyper, classdef, gcflavor='gc'):
    from pypy.rlib.objectmodel import UnboxedValue
    from pypy.objspace.flow.model import Constant
 
    if classdef is None:

src/s/y/Sypy-HEAD/translator/c/test/test_rtagged.py   Sypy(Download)
import sys, os
from pypy.rlib.objectmodel import UnboxedValue
 
 
class A(object):
class C(A, UnboxedValue):
    __slots__ = 'smallint'
    def meth(self, x):
        return self.smallint + x + 3
 

src/s/y/Sypy-HEAD/translator/c/test/test_newgc.py   Sypy(Download)
        assert res == expected
 
from pypy.rlib.objectmodel import UnboxedValue
 
class TaggedBase(object):
class UnboxedObject(TaggedBase, UnboxedValue):
    __slots__ = 'smallint'
    def meth(self, x):
        return self.smallint + x + 3
 

src/s/y/Sypy-HEAD/rpython/memory/test/test_transformed_gc.py   Sypy(Download)
        assert res == -1999
 
from pypy.rlib.objectmodel import UnboxedValue
 
class TaggedBase(object):
class UnboxedObject(TaggedBase, UnboxedValue):
    __slots__ = 'smallint'
    def meth(self, x):
        return self.smallint + x + 3
 

src/s/y/Sypy-HEAD/rpython/memory/test/test_gc.py   Sypy(Download)
        assert res == ord('y')
 
from pypy.rlib.objectmodel import UnboxedValue
 
class TaggedBase(object):
class UnboxedObject(TaggedBase, UnboxedValue):
    __slots__ = 'smallint'
    def meth(self, x):
        return self.smallint + x + 3
 

src/s/y/Sypy-HEAD/rpython/lltypesystem/test/test_rtagged.py   Sypy(Download)
import sys
from pypy.rpython.test.test_llinterp import interpret, get_interpreter
from pypy.rpython.lltypesystem import lltype
from pypy.rlib.objectmodel import UnboxedValue
from pypy.translator.translator import graphof
class C(A, UnboxedValue):
    __slots__ = 'smallint'
    def meth(self, x):
        return self.smallint + x + 3
 

src/s/y/Sypy-HEAD/jit/metainterp/test/test_ajit.py   Sypy(Download)
    def test_tagged(self):
        from pypy.rlib.objectmodel import UnboxedValue
        class Base(object):
            __slots__ = ()
 
        class Int(UnboxedValue, Base):

  1 | 2  Next