Did I find the right examples for you? yes no

All Samples(18)  |  Call(16)  |  Derive(0)  |  Import(2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/rtyper.py   plexnet(Download)
                    # else we might have type errors
                    if methname not in SELF._methods:
                        ootype.addMethods(SELF, {methname: meth})
 
    def dump_typererrors(self, num=None, minimize=True, to_log=False): 

src/s/y/Sypy-HEAD/rpython/rtyper.py   Sypy(Download)
                    # else we might have type errors
                    if methname not in SELF._methods:
                        ootype.addMethods(SELF, {methname: meth})
 
    def dump_typererrors(self, num=None, minimize=True, to_log=False): 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/backendopt/test/test_checkvirtual.py   plexnet(Download)
from pypy.rpython.ootypesystem.ootype import ROOT, Instance, \
     addMethods, meth, Meth, Void
from pypy.translator.backendopt.checkvirtual import check_virtual_methods
 
def test_nonvirtual():
    A = Instance("A", ROOT)
    addMethods(A, {"foo": meth(Meth([], Void))})
def test_checkvirtual_simple():
    A = Instance("A", ROOT)
    B = Instance("B", A)
 
    addMethods(A, {"foo": meth(Meth([], Void)),
                   "bar": meth(Meth([], Void))})
 
    addMethods(B, {"foo": meth(Meth([], Void))})
    C = Instance("C", B)
 
    addMethods(A, {"foo": meth(Meth([], Void)),
                   "bar": meth(Meth([], Void))})
 

src/s/y/Sypy-HEAD/translator/backendopt/test/test_checkvirtual.py   Sypy(Download)
from pypy.rpython.ootypesystem.ootype import ROOT, Instance, \
     addMethods, meth, Meth, Void
from pypy.translator.backendopt.checkvirtual import check_virtual_methods
 
def test_nonvirtual():
    A = Instance("A", ROOT)
    addMethods(A, {"foo": meth(Meth([], Void))})
def test_checkvirtual_simple():
    A = Instance("A", ROOT)
    B = Instance("B", A)
 
    addMethods(A, {"foo": meth(Meth([], Void)),
                   "bar": meth(Meth([], Void))})
 
    addMethods(B, {"foo": meth(Meth([], Void))})
    C = Instance("C", B)
 
    addMethods(A, {"foo": meth(Meth([], Void)),
                   "bar": meth(Meth([], Void))})