Re: [Twisted-Python] pb objects unexpectedly change identity

2014-05-01 Thread Daniel Sank
Dear twisted users, I have discovered the cause of this strange behavior. This is a good one. The object exposed to you as a client when you receive a RemoteCache is not the same object which is passed in as "self" to observe_* methods. In the source code, there is a pair of objects created when

Re: [Twisted-Python] pb objects unexpectedly change identity

2014-04-30 Thread Daniel Sank
Dear Twisted users, To my amazement I have reproduced this strange behaviour in an even simpler program. Attached are a pb client/server which illustrate unexpected behaviour of the id of a pb.RemoteCache. To run the example, run server.py and then client.py (with resources.py in the same working

[Twisted-Python] pb objects unexpectedly change identity

2014-04-30 Thread Daniel Sank
Dear twisted users, I think I have found some surprising behavior in perspective broker. I define a subclass of pb.RemoteCache which has a method managed by a descriptor. The descriptor keeps track of the instances it manages in a set. When the RemoteCache is first received by the client, it acce