[SciPy-dev] What is this dispatch thing ?

David Huard david.huard at gmail.com
Thu Jul 20 10:39:35 EDT 2006


Hi,
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,
**kw)
    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)
    248

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 ?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20060720/9104f4bd/attachment.html>


More information about the SciPy-Dev mailing list