[SciPy-dev] [Numpy-discussion] Doc-day

Stefan van der Walt stefan at sun.ac.za
Fri Dec 28 06:08:41 EST 2007


On Thu, Dec 27, 2007 at 10:41:17PM -0700, Fernando Perez wrote:
> I'm afraid I won't be able to participate tomorrow, but one thing to
> remember is that with nose, any and all doctest examples should be
> automatically picked up (with the appropriate flags).  So a *very
> easy* way for anyone to contribute is to simply add doctest examples
> to the codebase.  Those serve automatically two purposes: they are
> small tests for each function, and they make the library vastly easier
> to use

I am not familiar with the nosetest machinery, but may I suggest that
numpy is made available to doctests as 'N' or 'np'?  As an example I
attach a hackish script I use to excercise all the doctests in numpy.

Cheers
Stéfan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: numpy_doctest.py
Type: text/x-python
Size: 1041 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20071228/9e4f6cb7/attachment.py>


More information about the SciPy-Dev mailing list