[Numpy-discussion] Old-style classes in tests

Travis E. Oliphant oliphant@enthought....
Mon Nov 24 10:32:39 CST 2008

Tom Wright wrote:
> I am currently working on the Ironclad project porting numpy to Ironpython.
> It would be quite useful for me if HermitianTestCase in test_linalg.py 
> was a new style-class instead of an old-style class - since Ironpython 
> has a bug where dir operations do not work for classes inheriting from 
> both old- and new- style classes and I'd very much prefer not to patch 
> my version of numpy.
> In general, it would be useful if whenever this multiple inheritence 
> pattern is used new-style classes are used rather than old style 
> classes. This would require the following classes to change:
> test_numerictypes  - create_values, read_values_plain, read_values_nested
> test_print - create_zeros, create_values, assign_values, byteorder_values
> test_io - Roundtriptest
> test_linalg -  LinalgTestCase, HermitianTestCase
I have no trouble making all classes new-style.



More information about the Numpy-discussion mailing list