Did I find the right examples for you? yes no

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

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/history.py   plexnet(Download)
    def _get_hash_(self):
        if self.value:
            return ootype.identityhash(self.value)
        else:
            return 0
    def _get_hash_(self):
        if self.value:
            return ootype.identityhash(self.value)
        else:
            return 0

src/s/y/Sypy-HEAD/jit/metainterp/history.py   Sypy(Download)
    def _get_hash_(self):
        if self.value:
            return ootype.identityhash(self.value)
        else:
            return 0
    def _get_hash_(self):
        if self.value:
            return ootype.identityhash(self.value)
        else:
            return 0

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/llinterp.py   plexnet(Download)
            return self.heap.gc_id(ptr)
        elif isinstance(PTR, ootype.OOType):
            return ootype.identityhash(ptr)     # XXX imprecise
        raise NotImplementedError("gc_id on %r" % (PTR,))
 

src/s/y/Sypy-HEAD/rpython/llinterp.py   Sypy(Download)
            return self.heap.gc_id(ptr)
        elif isinstance(PTR, ootype.OOType):
            return ootype.identityhash(ptr)     # XXX imprecise
        raise NotImplementedError("gc_id on %r" % (PTR,))
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/warmstate.py   plexnet(Download)
    elif isinstance(TYPE, ootype.OOType):
        if x:
            return ootype.identityhash(x)
        else:
            return 0

src/s/y/Sypy-HEAD/jit/metainterp/warmstate.py   Sypy(Download)
    elif isinstance(TYPE, ootype.OOType):
        if x:
            return ootype.identityhash(x)
        else:
            return 0

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/cli/test/test_dotnet.py   plexnet(Download)
        def fn():
            a = ootype.new(A)
            ahash = ootype.identityhash(a)
            obj = ootype.cast_to_object(a)
            native = cast_to_native_object(obj)
            name = native.GetType().get_Name()
            obj2 = cast_from_native_object(native)
            a2 = ootype.cast_from_object(A, obj2)
            a2hash = ootype.identityhash(a2)

src/s/y/Sypy-HEAD/translator/cli/test/test_dotnet.py   Sypy(Download)
        def fn():
            a = ootype.new(A)
            ahash = ootype.identityhash(a)
            obj = ootype.cast_to_object(a)
            native = cast_to_native_object(obj)
            name = native.GetType().get_Name()
            obj2 = cast_from_native_object(native)
            a2 = ootype.cast_from_object(A, obj2)
            a2hash = ootype.identityhash(a2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/metainterp/test/test_basic.py   plexnet(Download)
        def f():
            obj1 = ootype.new(A)
            obj2 = ootype.new(A)
            return ootype.identityhash(obj1) == ootype.identityhash(obj2)
        assert not f()

src/s/y/Sypy-HEAD/jit/metainterp/test/test_ajit.py   Sypy(Download)
        def f():
            obj1 = ootype.new(A)
            obj2 = ootype.new(A)
            return ootype.identityhash(obj1) == ootype.identityhash(obj2)
        assert not f()