[PYTHON MATRIX-SIG] Pretty Printer
Perry A. Stoll
stoll@atr-sw.atr.co.jp
Thu, 08 Feb 1996 12:11:01 +0900
As Konrad's pretty printer continues to evolve (please!) it seems to
be taking over most of the Numeric module. How about we make it a
separate file?
I've done the following in my Python:
1) Save his pretty printer as a separate python file ArrayFormatter.py
2) Add "import Numeric" to the top of ArrayFormatter.py file
and prepend "Numeric." to the compress, maximum, and minimum calls.
3) Put the following near the end of Numeric.py:
from ArrayFormatter import arrayToString
# Set the official array printing function
set_print_function(arrayToString)
Seems like a nice division.
-Perry
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================