[PEAK] Strange dispatch problem after cvs up

Jay Parlar parlar at gmail.com
Thu Apr 21 09:02:48 EDT 2005


Fantastic, importing dispatch.strategy first worked for me. Not a good
long term solution, but at least I can get back to it.

Jay P.

On 4/20/05, Phillip J. Eby <pje at telecommunity.com> wrote:
> 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