[PYTHON MATRIX-SIG] PrettyPrinter problem

Tser-Yuan BrianYang tbyang@icf.llnl.gov
Mon, 25 Mar 96 10:45:05 PST


The following may have been posted or even corrected. If so, I apologize
for sending junk mail.

The PrettyPrinter in the numeric package seems to have trouble printing
a float or double array with only one element, i.e.,

>>> a=zeros(1,'d')
>>> a

Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/dist/basis/Python/Python-1.3b/lib/python/numeric/PrettyPrinter.py", lin
e 34, in arrayToString
    format, item_length = _floatFormat(data, precision)
  File "/dist/basis/Python/Python-1.3b/lib/python/numeric/PrettyPrinter.py", lin
e 91, in _floatFormat
    precision = min(precision, apply(max, tuple(map(lambda x, p=precision,
TypeError: min() or max() of non-sequence

				Brian Yang

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================