Well, that's not the right answer, either.

> In [18]: numpy.array([1])/0.0 Out[18]: array([ inf])

> But I think the *real* right answer is this:

> In [15]: numpy.inf Out[15]: inf

OK, now I am thoroughly confused. Take a look at the original

traceback

from _nc_imports import nx, inf, infinity, Infinity

File "C:\Python24\Lib\site-packages\matplotlib\numerix\_nc_imports.py",

line 25, in ?

inf = infty = infinity = Infinity = (array([1])/0.0)[0]

TypeError: unsupported operand type(s) for /: 'numpy.ndarray' and 'float'

He is importing from _nc_imports, which is triggered by Numeric, not

numpy. numpy lives in _sp_imports. _nc_imports does the following

from Numeric import array

#...snip, snip

inf = infty = infinity = Infinity = (array([1])/0.0)[0]

How in the world is he getting the error message pointing to an

numpy.ndarray in _nc_imports?

JDH