[PEAK] Strange dispatch problem after cvs up

Phillip J. Eby pje at telecommunity.com
Wed Apr 20 20:05:53 EDT 2005


At 02:21 PM 04/20/2005 -0400, Jay Parlar wrote:
>I was finally able to reproduce the problem with a trivial example:
>
>
> >>> import dispatch
> >>> class A:
>...  [dispatch.generic()]
>...  def make(self, ctrl):
>...   '''
>...   stuff
>...   '''
>...  [make_header.when('ctrl == 4')]
>...  def make(self, ctrl):
>...   print "four"
>...


I copied this code verbatim into one of the dispatch system doctests, and 
didn't get the error.  It turns out that this is some sort of cyclic import 
problem, because if you import dispatch.strategy first, you don't get the 
error.  This may take me a while to track down.




More information about the PEAK mailing list