[Twisted-Python] Multiplex
Glyph Lefkowitz
glyph at twistedmatrix.com
Wed Aug 8 05:48:59 MDT 2001
This is what Cached was designed for :-).
You do realize, however, that even in a Copied, you may return something
like {'foo': self.foo, 'remote', Proxy(perspective, self)} from
YourCopied.getStateToCopyFor, right?
Then you can copy your cake and proxy it too...
On Wed, 8 Aug 2001, Kevin Turner wrote:
> Ok, Glyph is givin' me funny looks.
>
> The idea that hooked me in to that whole mess was the bit about the peer
> getting a single object which has both locally-defined properties *and*
> can still act as a Reference.
>
> again, the idea analogous to subclassing. Python checks the subclass
> for the attribute first, and then checks its base classes. I want to
> have the object search its local class first, and then fall back to
> being a Reference. I dunno how to do that currently.
>
> The two-way aspect is important to me as well, but that's already
> covered.
______ __ __ _____ _ _
| ____ | \_/ |_____] |_____|
|_____| |_____ | | | |
@ t w i s t e d m a t r i x . c o m
http://twistedmatrix.com/users/glyph
More information about the Twisted-Python
mailing list