Formating complex numbers
Janko Hauser
jhauser at ifm.uni-kiel.de
Tue Jun 13 04:41:17 EDT 2000
As you are using a class to represent your matrices you can overload
the __repr__ and __str__ methods, to return what you want. These are
also called by the % operator. Although I do not know which one is
currently called. I think this has changed in 1.6 in some way.
HTH,
__Janko
--
Institut fuer Meereskunde phone: 49-431-597 3989
Dept. Theoretical Oceanography fax : 49-431-565876
Duesternbrooker Weg 20 email: jhauser at ifm.uni-kiel.de
24105 Kiel, Germany
More information about the Python-list
mailing list