[SciPy-user] subclassing matrix

BORGULYA Gábor borgulya at gyer2.sote.hu
Sat Apr 9 07:03:02 CDT 2005

Hi List!

I would like to subclass the matrix class to add a method 'as_html' which 
generates a html table displaying the matrix.
Could anyone tell me what the problem is with the following code?

>>> from scipy import *
>>> class mat2(mat):
...   pass
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: __init__() takes exactly 3 arguments (4 given)


More information about the SciPy-user mailing list