1. In add_newdocs.py, add
from numpy.core import ndarray
2. then add an entry for each method, eg
add_docstring(ndarray.var,
"""a.var(axis=None, dtype=None)
Return the variance, a measure of the spread of a distribution.
The variance is the average of the squared deviations from the mean,
i.e. var = mean((x - x.mean())**2).
See also: std
""")
3. in arraymethods.c,
delete static char doc_var[] = ...
remove doc_var in
{"var", (PyCFunction)array_variance,
METH_VARARGS|METH_KEYWORDS, doc_var},
David
2006/7/28, Sasha <[EMAIL PROTECTED]>:
On 7/28/06, Stefan van der Walt <[EMAIL PROTECTED]> wrote:
> Would anyone mind if the change was made? If not, where should they
> go? (numpy/add_newdocs.py or numpy/core/something)
Another +1 for numpy/add_newdocs.py and a suggestion: check for
Py_OptimizeFlag > 1 in add_newdoc so that docstrings are not loaded if
python is invoked with -OO option. This will improve import numpy
time and reduce the memory footprint. I'll make the change if no one
objects.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion