[PYTHON MATRIX-SIG] import Numeric

Timothy A. Hochberg hochberg@wwa.com
Tue, 13 May 1997 16:20:05 -0500 (CDT)



On Tue, 13 May 1997, Dave Stinchcombe wrote:

> Dear Folks,
> this may seem a really stupid query but here goes.
> When I use import Numeric, instead of from Numeric import *
> I get the following problem.
> >>> import Numeric
> >>> a = Numeric.array([1,2,3,4], Float)
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> NameError: Float
> I get no such problem just using from Numeric import *. 
> The versions of NumPy I have are NumPy-1.0b3 and NumPyLib-1.0b2.
> Can someone tell if I'm being dense or not please.

Try Numeric.Float. (Float is defined in the Numeric module, so you need to
access it explicitly if you don't import *).


-tim


_______________
MATRIX-SIG  - SIG on Matrix Math for Python

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