Did I find the right examples for you? yes no

All Samples(28)  |  Call(26)  |  Derive(2)  |  Import(0)
Weak ref proxy used after referent went away.

src/p/y/python-ase-3.8.1/ase/utils/memory.py   python-ase(Download)
    def __setitem__(self, key, value):
        """Disabled for the singleton.
        x.__setitem__(i, y) <==> x[i]=y"""
        if self.verbose>=2: print 'MemorySingleton.__setitem__'
        raise ReferenceError('Singleton is immutable.')
    def __delitem__(self, key):
        """Disabled for the singleton.
        x.__delitem__(y) <==> del x[y]"""
        if self.verbose>=2: print 'MemorySingleton.__delitem__'
        raise ReferenceError('Singleton is immutable.')
    def clear(self):
        """Disabled for the singleton.
        D.clear() -> None.  Remove all items from D."""
        if self.verbose>=1: print 'MemorySingleton.clear'
        raise ReferenceError('Singleton is immutable.')
    def update(self):
        """Disabled for the singleton.
        D.update(E) -> None.  Update D from E: for k in E.keys(): D[k] = E[k]"""
        if self.verbose>=1: print 'MemorySingleton.update'
        raise ReferenceError('Singleton is immutable.')

src/r/p/rpyc-3.2.3/rpyc/core/netref.py   rpyc(Download)
    conn = object.__getattribute__(proxy, "____conn__")()
    if not conn:
        raise ReferenceError('weakly-referenced object no longer exists')
    oid = object.__getattribute__(proxy, "____oid__")
    return conn.sync_request(handler, oid, *args)
    conn = object.__getattribute__(proxy, "____conn__")()
    if not conn:
        raise ReferenceError('weakly-referenced object no longer exists')
    oid = object.__getattribute__(proxy, "____oid__")
    return conn.async_request(handler, oid, *args)

src/r/p/rpyc-HEAD/rpyc/core/netref.py   rpyc(Download)
    conn = object.__getattribute__(proxy, "____conn__")()
    if not conn:
        raise ReferenceError('weakly-referenced object no longer exists')
    oid = object.__getattribute__(proxy, "____oid__")
    return conn.sync_request(handler, oid, *args)
    conn = object.__getattribute__(proxy, "____conn__")()
    if not conn:
        raise ReferenceError('weakly-referenced object no longer exists')
    oid = object.__getattribute__(proxy, "____oid__")
    return conn.async_request(handler, oid, *args)

src/b/a/batchhttp-1.1.1/batchhttp/client.py   batchhttp(Download)
        instance = self.instance()
        if instance is None:
            raise ReferenceError('Instance to which method was weakly bound has been collected')
 
        method = new.instancemethod(self.function, instance, self.methclass)
        callback = self.callback()
        if callback is None:
            raise ReferenceError('Callback to which this callback was weakly bound has been collected')
        return callback(*args, **kwargs)
 
        """
        if not self.callback.alive():
            raise ReferenceError("No callback to return request's response to")
 
        headers, body = self._update_headers_from_cache(http)
        """
        if not self.callback.alive():
            raise ReferenceError("No callback to return response to")
 
        # Parse the part body into a status line and a Message.

src/b/a/batchhttp-HEAD/batchhttp/client.py   batchhttp(Download)
        instance = self.instance()
        if instance is None:
            raise ReferenceError('Instance to which method was weakly bound has been collected')
 
        method = new.instancemethod(self.function, instance, self.methclass)
        callback = self.callback()
        if callback is None:
            raise ReferenceError('Callback to which this callback was weakly bound has been collected')
        return callback(*args, **kwargs)
 
        """
        if not self.callback.alive():
            raise ReferenceError("No callback to return request's response to")
 
        headers, body = self._update_headers_from_cache(http)
        """
        if not self.callback.alive():
            raise ReferenceError("No callback to return response to")
 
        # Parse the part body into a status line and a Message.

src/p/i/pilas-0.80/pilas/evento.py   pilas(Download)
            f(AttrDict(evento))
        else:
            raise ReferenceError("La funcion dejo de existir")
 
 
    def __call__(self, **evento):
        if self.inst is not None and self.inst() is None:
            raise ReferenceError("El metodo ha dejado de existir")
        elif self.inst is not None:
            mtd = new.instancemethod(self.func, self.inst(), self.klass)

src/r/o/rootplot-2.2.1/lib/rootplot/utilities.py   rootplot(Download)
            roothist = self.file.GetDirectory(path).Get(object_name)
        except ReferenceError, e:
            raise ReferenceError(e)
        try:
            return type2D(roothist)

src/r/o/rootplot-2.2.1/lib/rootplot/root2matplotlib.py   rootplot(Download)
                                          Hist, Hist2D)
        except ReferenceError, e:
            raise ReferenceError(e)
 
################ Define additional helping functions

src/u/n/unknown-horizons-HEAD/horizons/util/python/weakmethod.py   unknown-horizons(Download)
			return self.function(self.instance(), *args, **kwargs)
		else:
			raise ReferenceError("Instance: %s  Function: %s  Function from module: %s" %
			                     (self.instance(), self.function, self.function.__module__))
 

src/r/p/rpyc-op-3.2.1-openproximity/rpyc/core/netref.py   rpyc-op(Download)
    connection = conn()
    if not connection:
        raise ReferenceError('weakly-referenced object no longer exists')
    oid = object.__getattribute__(proxy, "____oid__")
    return connection.async_request(handler, oid, *args)

  1 | 2  Next