[PEAK] dispatch.generic broken in CVS?

Phillip J. Eby pje at telecommunity.com
Mon Dec 6 22:37:06 EST 2004

At 09:11 PM 12/6/04 -0500, Andy Gross wrote:

>     [parseRule.when([str,unicode])]
>AttributeError: 'function' object has no attribute 'when'
>Using python 2.4 and PEAK from CVS as of 5 minutes ago.

It's an import order dependency; if you import 'dispatch.functions' 
beforehand (like the tests seem to do) it'll work normally.  I've fixed it 
(I think) in CVS.  At any rate, your sample script doesn't fail any 
more.  Let me know if you have any more problems with it.

More information about the PEAK mailing list