[PEAK] Latest CVS version and Python 2.3.4

Phillip J. Eby pje at telecommunity.com
Mon Nov 22 20:26:52 EST 2004

At 04:39 PM 11/21/04 +0100, Radek Kanovsky wrote:
>I have found some problem with latest CVS version of PEAK. Assignment
>'Singleton.__class__ = SingletonClass' in peak/binding/once.py:735
>raises exception:
>     TypeError: __class__ assignment: only for heap types

Darn.  I knew Python 2.3 had tightened the rules on assignment to 
__class__, but I forgot that this made a difference for metaclasses.

Well, there goes my plan for making it possible to cleanly use bindings in 
any class regardless of metaclass.  :(  I think there's probably another 
way to do it, but it'll take some research.  In the meantime, I'll change 
the above to work a little differently.

More information about the PEAK mailing list