2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

Check rich slicing of Numeric arrays only if Numeric or numarray is

installed.


[SVN r22252]
This commit is contained in:
Jonathan Brandmeyer
2004-02-13 02:07:21 +00:00
parent 799eeb0cb8
commit 4a7686cd33

View File

@@ -9,7 +9,24 @@
... print "test passed"
...
test passed
>>> check_numeric_array_rich_slice()
>>> have_numeric = 0
>>> try:
... from Numeric import array
... have_numeric = 1
... except:
... pass
...
>>> try:
... from numarray import array
... have_numeric = 1
... except:
... pass
...
>>> if have_numeric:
... check_numeric_array_rich_slice()
... else:
... print 1
...
1
>>> import sys
>>> if sys.version_info[0] == 2 and sys.version_info[1] >= 3:
@@ -23,7 +40,8 @@ test passed
"""
# Performs an affirmative and negative argument resolution check,
# checks the operation of extended slicing in Numeric.array's
# checks the operation of extended slicing in Numeric arrays
# (only performed if Numeric.array or numarray.array can be found).
# checks the operation of extended slicing in new strings (Python 2.3 only).
def run(args = None):