Skip to content

Commit

Permalink
DOC: Update docs for PyArray_FromInterface/PyArray_FromStructInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimefrio committed Jan 29, 2015
1 parent 0a7fe2e commit a7743d4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions doc/source/reference/c-api.array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -593,18 +593,16 @@ From other objects
.. cfunction:: PyObject* PyArray_FromStructInterface(PyObject* op)

Returns an ndarray object from a Python object that exposes the
:obj:`__array_struct__`` method and follows the array interface
protocol. If the object does not contain this method then a
:obj:`__array_struct__` attribute and follows the array interface
protocol. If the object does not contain this attribute then a
borrowed reference to :cdata:`Py_NotImplemented` is returned.

.. cfunction:: PyObject* PyArray_FromInterface(PyObject* op)

Returns an ndarray object from a Python object that exposes the
:obj:`__array_shape__` and :obj:`__array_typestr__`
methods following
the array interface protocol. If the object does not contain one
of these method then a borrowed reference to :cdata:`Py_NotImplemented`
is returned.
:obj:`__array_interface__` attribute following the array interface
protocol. If the object does not contain this attribute then a
borrowed reference to :cdata:`Py_NotImplemented` is returned.

.. cfunction:: PyObject* PyArray_FromArrayAttr(PyObject* op, PyArray_Descr* dtype, PyObject* context)

Expand Down

0 comments on commit a7743d4

Please sign in to comment.