summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-31 21:02:19 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-31 21:02:19 +0000
commit41496b7356906d31b61c2f208e622eb4bd0c2ec2 (patch)
treeff8ade07a7464a2a254bbc17be0792b0acb90d80 /numpy/lib/utils.py
parent8a52fe2795b224fb9e9daa3877e385a7975a7a5b (diff)
downloadnumpy-41496b7356906d31b61c2f208e622eb4bd0c2ec2.tar.gz
Change arrtype --> sctype so that dtype is given pre-eminance in determining array type.
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index e9ff9e540..7e20c3c7a 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -1,6 +1,6 @@
-from numpy.core.numerictypes import obj2arrtype
+from numpy.core.numerictypes import obj2sctype
-__all__ = ['issubclass_', 'get_numpy_include', 'issubarrtype']
+__all__ = ['issubclass_', 'get_numpy_include', 'issubsctype']
def issubclass_(arg1, arg2):
try:
@@ -8,8 +8,8 @@ def issubclass_(arg1, arg2):
except TypeError:
return False
-def issubarrtype(arg1, arg2):
- return issubclass(obj2arrtype(arg1), obj2arrtype(arg2))
+def issubsctype(arg1, arg2):
+ return issubclass(obj2sctype(arg1), obj2sctype(arg2))
def get_numpy_include():
"""Return the directory in the package that contains the numpy/*.h header