[Numpy-discussion] Problem with name numeric
Colin J. Williams
cjw at sympatico.ca
Fri Oct 7 13:20:24 EDT 2005
With the following sequence I had expected "scipy.base.numeric" to be a
module, instead it is reported as a type.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy.base.numeric
>>> dir()
['__builtins__', '__doc__', '__name__', 'scipy']
>>> scipy
<module 'scipy' from 'C:\Python24\lib\site-packages\scipy\__init__.pyc'>
>>> scipy.base
<module 'scipy.base' from
'C:\Python24\lib\site-packages\scipy\base\__init__.pyc'>
>>> scipy.base.numeric
<type 'numeric_arrtype'>
>>>
I need to be able to access ndarray to create a subclass.
Colin W.
More information about the NumPy-Discussion
mailing list