Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/s/y/Sypy-HEAD/objspace/std/objspace.py   Sypy(Download)
                               transparent, callmethod, proxyobject)
from pypy.objspace.descroperation import DescrOperation, raiseattrerror
from pypy.rlib.objectmodel import instantiate, r_dict, specialize, is_annotation_constant
from pypy.rlib.debug import make_sure_not_resized
from pypy.rlib.rarithmetic import base_int, widen, maxint, is_valid_int
    def _type_isinstance(self, w_inst, w_type):
        if not isinstance(w_type, W_TypeObject):
            raise OperationError(self.w_TypeError,
                                 self.wrap("need type object"))
        if is_annotation_constant(w_type):

src/s/y/Sypy-HEAD/rlib/test/test_objectmodel.py   Sypy(Download)
    def test_isconstant(self):
        from pypy.rlib.objectmodel import is_annotation_constant, specialize
 
        @specialize.arg_or_var(0)
        def f(arg):
            if is_annotation_constant(arg):