[SciPy-dev] What is this dispatch thing ?

David Huard david.huard at gmail.com
Thu Jul 20 09:39:35 CDT 2006

I just updated scipy from svn and stats.linregress(x,y) returns

/usr/lib/python2.4/site-packages/stats.py in __call__(self, arg1, *args,
    244     def __call__(self, arg1, *args, **kw):
    245         if type(arg1) not in self._types:
--> 246             raise TypeError, "don't know how to dispatch %s
arguments" %  type(arg1)
    247         return apply(self._dispatch[type(arg1)], (arg1,) + args, kw)

TypeError: don't know how to dispatch <type 'numpy.ndarray'> arguments

Also, in ipython, linregress? returns a doc about the dispatch class. Is
this intended ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-dev/attachments/20060720/9104f4bd/attachment.html 

More information about the Scipy-dev mailing list