overriding str and repr methods in Numeric arrays

Rolo Tomasi rolo at foobar.org
Fri Aug 31 13:26:06 EDT 2001


I am creating some rather large arrays in Python using Numeric Python
arrays.  The default behavior when the user types the name of one
of the array objects is to call the str() and/or repr() methods.

I want to override the str() and possibly the repr() methods of array.

Can someone suggest the best way to override methods in the Numeric
array class?





More information about the Python-list mailing list