Dieter Maurer wrote:
Chris Withers wrote at 2007-8-10 07:38 +0100:
...
I'm thinking something along the lines of create intSet.py something like as follows and putting it somewhere on the PYTHONPATH:


class intSet(Persistent):

  def __setstate__(self,...):
    ...

Would that work?

No.

Both "Persistent" and "intSet" come with their own C level
attributes. Therefore, Python does not allow them to be combined
through subclassing.

I'm not subclass intSet in the above, I'm rewriting intSet as a python class that subclasses persistent, and then decoding the state in the setstate method...

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to