[Twisted-Python] Having touble with spread.pb un-serializing an object

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Mon Sep 28 09:26:06 EDT 2009

On 25 Sep, 03:42 am, bash at intelerad.com wrote:
>Hi Jean-Paul,
>Here is a sample server and client code that demonstrates the problem
>with PB's unserialization code and objects that use __slots__.  The
>SlotsObject class implements __slots__ and the NoSlotsObject does not.
>The problem arises when de-serializing the SlotsObject.  The stack 
>is a little different than the original one I posted but the net-effect
>is the same; an AttributeError exception.

Hi Benjamin,

Thanks for the example.  I can reproduce the problem you're seeing.  I 
don't see any particular reason PB shouldn't support classes with 
__slots__.  Can you file a ticket and attach the example?


More information about the Twisted-Python mailing list