[Numpy-discussion] Code samples in docstrings mistaken as doctests
Charles R Harris
charlesr.harris at gmail.com
Mon Jun 23 22:09:54 EDT 2008
On Mon, Jun 23, 2008 at 5:58 PM, Michael Abshoff <
michael.abshoff at googlemail.com> wrote:
> Stéfan van der Walt wrote:
> > 2008/6/24 Stéfan van der Walt <stefan at sun.ac.za>:
> >> It should be fairly easy to execute the example code, just to make
> >> sure it runs. We can always work out a scheme to test its validity
> >> later.
>
> Hi,
>
> > Mike Hansen just explained to me that the Sage doctest system sets the
> > random seed before executing each test. If we address
> >
> > a) Random variables
>
> we have some small extensions to the doctesting framework that allow us
> to mark doctests as "#random" so that the result it not checked. Carl
> Witty wrote some code that makes the random number generator in a lot of
> the Sage components behave consistently on all supported platforms.
>
But there is more than one possible random number generator. If you do that
you are tied into one kind of generator and one kind of initialization
implementation.
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080623/48eee13c/attachment.html>
More information about the NumPy-Discussion
mailing list