__array_interface__

The Array Interface

Note

This page describes the numpy-specific API for accessing the contents of a numpy array from other C extensions. PEP 3118The Revised Buffer Protocol introduces similar, standardized API to Python 2.6 and 3.0 for any extension module to use. Cython‘s buffer array support uses the 登录查看完整内容