diff options
-rw-r--r-- | numpy/core/code_generators/multiarray_api_order.txt | 1 | ||||
-rw-r--r-- | numpy/core/src/arrayobject.c | 8 | ||||
-rw-r--r-- | numpy/doc/HOWTO_DOCUMENT.txt | 4 |
3 files changed, 11 insertions, 2 deletions
diff --git a/numpy/core/code_generators/multiarray_api_order.txt b/numpy/core/code_generators/multiarray_api_order.txt index 03a75a576..805d12709 100644 --- a/numpy/core/code_generators/multiarray_api_order.txt +++ b/numpy/core/code_generators/multiarray_api_order.txt @@ -81,3 +81,4 @@ _PyArray_GetSigintBuf PyArray_DescrAlignConverter PyArray_DescrAlignConverter2 PyArray_SearchsideConverter +PyArray_CheckAxis diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index fe9d67252..d93f82bd0 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -4832,8 +4832,12 @@ array_richcompare(PyArrayObject *self, PyObject *other, int cmp_op) return result; } + +/*MULTIARRAY_API + PyArray_CheckAxis +*/ static PyObject * -_check_axis(PyArrayObject *arr, int *axis, int flags) +PyArray_CheckAxis(PyArrayObject *arr, int *axis, int flags) { PyObject *temp1, *temp2; int n = arr->nd; @@ -4875,6 +4879,8 @@ _check_axis(PyArrayObject *arr, int *axis, int flags) return temp2; } +#define _check_axis PyArray_CheckAxis + #include "arraymethods.c" /* Lifted from numarray */ diff --git a/numpy/doc/HOWTO_DOCUMENT.txt b/numpy/doc/HOWTO_DOCUMENT.txt index e7de660ad..8b1230ad1 100644 --- a/numpy/doc/HOWTO_DOCUMENT.txt +++ b/numpy/doc/HOWTO_DOCUMENT.txt @@ -17,6 +17,7 @@ Additional PEPs of interest regarding documentation of code: Use a code checker: * `pylint <http://www.logilab.org/857>`__ + * `pyflakes` easy_install pyflakes * `pep8.py <http://svn.browsershots.org/trunk/devtools/pep8/pep8.py>`__ Common import standards:: @@ -32,7 +33,8 @@ function, class, or method definition. The docstring is a special attribute of the object (``object.__doc__``) and, for consistency, is surrounded by triple double quotes. -It is highly desireable that both NumPy and SciPy_ follow a common +It is highly desireable that both NumPy and SciPy_ and scikits to +follow a common convention for docstrings that provide for consistency while also allowing epydoc_ to produce nicely-formatted reference guides. This document describes the current community consensus for this standard. |