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/annotation/builtin.py   plexnet(Download)
def ooupcast(I, i):
    assert isinstance(I.const, ootype.Instance)
    if ootype.isSubclass(i.ootype, I.const):
        return SomeOOInstance(I.const)
    else:
        raise AnnotatorError, 'Cannot cast %s to %s' % (i.ootype, I.const)
 
def oodowncast(I, i):
    assert isinstance(I.const, ootype.Instance)
    if ootype.isSubclass(I.const, i.ootype):

src/s/y/Sypy-HEAD/annotation/builtin.py   Sypy(Download)
def ooupcast(I, i):
    assert isinstance(I.const, ootype.Instance)
    if ootype.isSubclass(i.ootype, I.const):
        return SomeOOInstance(I.const)
    else:
        raise AnnotatorError, 'Cannot cast %s to %s' % (i.ootype, I.const)
 
def oodowncast(I, i):
    assert isinstance(I.const, ootype.Instance)
    if ootype.isSubclass(I.const, i.ootype):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/rtyper.py   plexnet(Download)
                    continue
                SELF = graph.getargs()[0].concretetype
                if TYPE != SELF and ootype.isSubclass(SELF, TYPE):
                    # the annotator found that this method has a more precise
                    # type. Attach it to the proper subclass, so that the type

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/exceptiondata.py   plexnet(Download)
    def is_exception_instance(self, INSTANCE):
        return ootype.isSubclass(INSTANCE, self._EXCEPTION_INST)
 
    def make_helpers(self, rtyper):
        self.fn_exception_match = self.make_exception_matcher(rtyper)

src/s/y/Sypy-HEAD/rpython/rtyper.py   Sypy(Download)
                    continue
                SELF = graph.getargs()[0].concretetype
                if TYPE != SELF and ootype.isSubclass(SELF, TYPE):
                    # the annotator found that this method has a more precise
                    # type. Attach it to the proper subclass, so that the type

src/s/y/Sypy-HEAD/rpython/ootypesystem/exceptiondata.py   Sypy(Download)
    def is_exception_instance(self, INSTANCE):
        return ootype.isSubclass(INSTANCE, self._EXCEPTION_INST)
 
    def make_helpers(self, rtyper):
        self.fn_exception_match = self.make_exception_matcher(rtyper)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/backendopt/inline.py   plexnet(Download)
            if LINK_SELF != INPUT_SELF:
                # need to insert an upcast
                if ootype.isSubclass(LINK_SELF, INPUT_SELF):
                    opname = 'ooupcast'
                else:
                    assert ootype.isSubclass(INPUT_SELF, LINK_SELF)

src/s/y/Sypy-HEAD/translator/backendopt/inline.py   Sypy(Download)
            if LINK_SELF != INPUT_SELF:
                # need to insert an upcast
                if ootype.isSubclass(LINK_SELF, INPUT_SELF):
                    opname = 'ooupcast'
                else:
                    assert ootype.isSubclass(INPUT_SELF, LINK_SELF)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/jvm/database.py   plexnet(Download)
                args =  mimpl.graph.getargs()
                SELF = args[0].concretetype
                if not ootype.isSubclass(OOTYPE, SELF): continue
                mobj = self._function_for_graph(
                    clsobj, mname, False, mimpl.graph)

src/s/y/Sypy-HEAD/translator/jvm/database.py   Sypy(Download)
                args =  mimpl.graph.getargs()
                SELF = args[0].concretetype
                if not ootype.isSubclass(OOTYPE, SELF): continue
                mobj = self._function_for_graph(
                    clsobj, mname, False, mimpl.graph)

  1 | 2  Next