Did I find the right examples for you? yes no

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

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/annlowlevel.py   plexnet(Download)
    def graph2delayed(self, graph, FUNCTYPE=None):
        if self.rtyper.type_system.name == 'lltypesystem':
            if FUNCTYPE is None:
                FUNCTYPE = lltype.ForwardReference()
            # obscure hack: embed the name of the function in the string, so
            # that the genc database can get it even before the delayedptr
            # is really computed
            name = "delayed!%s" % (graph.name,)
            delayedptr = lltype._ptr(lltype.Ptr(FUNCTYPE), name, solid=True)
            delayedptr = lltype._ptr(lltype.Ptr(FUNCTYPE), name, solid=True)
        else:
            if FUNCTYPE is None:
                FUNCTYPE = ootype.ForwardReference()
            name = "delayed!%s" % (graph.name,)
            delayedptr = ootype._forward_static_meth(FUNCTYPE, _name=name)

src/s/y/Sypy-HEAD/rpython/annlowlevel.py   Sypy(Download)
    def graph2delayed(self, graph, FUNCTYPE=None):
        if self.rtyper.type_system.name == 'lltypesystem':
            if FUNCTYPE is None:
                FUNCTYPE = lltype.ForwardReference()
            # obscure hack: embed the name of the function in the string, so
            # that the genc database can get it even before the delayedptr
            # is really computed
            name = "delayed!%s" % (graph.name,)
            delayedptr = lltype._ptr(lltype.Ptr(FUNCTYPE), name, solid=True)
            delayedptr = lltype._ptr(lltype.Ptr(FUNCTYPE), name, solid=True)
        else:
            if FUNCTYPE is None:
                FUNCTYPE = ootype.ForwardReference()
            name = "delayed!%s" % (graph.name,)
            delayedptr = ootype._forward_static_meth(FUNCTYPE, _name=name)