[Numpy-discussion] Doctest items

Charles R Harris charlesr.harris at gmail.com
Tue Jul 1 14:38:57 EDT 2008


On Tue, Jul 1, 2008 at 11:56 AM, Alan McIntyre <alan.mcintyre at gmail.com>
wrote:

> Just a few questions/comments about doctests:
>
> 1. Should all doctests be written such that you could start Python, do
> an "import numpy as np", and then type in the examples verbatim? There
> are a number that currently wouldn't work that way (they depend on the
> function under test being in the local namespace, for example).
>

+1

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080701/fec126ad/attachment.html>


More information about the NumPy-Discussion mailing list