[Twisted-Python] can pb.Copyable objects be compared for equality after a round trip?

Colin McMillen mcmillen at cs.cmu.edu
Fri May 5 11:31:41 EDT 2006


> Thanks Colin, this would actually work fine for what I need to do. I  
> just figured that I was doing something wrong since it's mentioned in  
> a few places that Twisted should be able to do this. Perhaps I am  
> mistaking Copyable with Referenceable however... The example from the  
> docs I was thinking of where an object is send on a round trip then  
> compared using '==' is actually a pb.Referenceable (I think Copyable  
> is a subclass though)?

As I said, I'm not sure that my way of doing things is the Right Way
(or considered a best practice), so if anyone can confirm or deny,
that would possibly be useful. :) It seems like a hack, but it works
for me.

- Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20060505/a24b3690/attachment.pgp 


More information about the Twisted-Python mailing list