As discussed in Section 5.4, SIDL supports both normal and raw arrays (i.e., r-arrays). Both types of arrays are treated the same in Python bindings. That is, they both map to their NumPy or Numeric Python equivalents. In the case of SIDL longs, an array of 64-bit integers may be used if NumPy or Numeric Python supports 64-bit integers; otherwise, an array of Python's indefinite precision integers (i.e., integers with unlimited bits) are used.
NOTE
The SIDL array API is not supported in these bindings; instead,
those in NumPy or Numeric Python must be used. With Babel 1.1.0 and
later, Babel supports either the new NumPy or the deprecated Numeric
Python. To determine which Babel is configured to use, you can use the
following:
import sidlPyArray if sidlPyArray.type == "numpy": import numpy else: if sidlPyArray.type == "numeric": import numeric