[Numpy-discussion] numpy.dot gives wrong results with floats?

David M. Cooke cookedm at physics.mcmaster.ca
Wed Mar 1 11:42:07 CST 2006

On Wed, Mar 01, 2006 at 02:28:28PM -0500, Sasha wrote:
> On 3/1/06, Travis Oliphant <oliphant.travis at ieee.org> wrote:
> > ...
> > Feel free to contribute more tests.

> 3. Add support for doctests.  This is probably the simplest type of
> test that a user can produce - just cut and paste from python session.
>  Doctests can be placed in separate files and don't need to clutter
> real documentation.  Python 2.4 contains code integrating doctests and
> unit tests and that code has 95% of what is needed.  If we have to
> support 2.3, it may be appropriate to distribute a backport with
> numpy.  The remaining 5% include support for ipython sessions, maybe
> better output checking for printed arrays (such as scan through to a
> closing paren rather than an empty line etc.).

Already there. See the tests in numpy/lib/tests/test_polynomial.py

|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca

More information about the Numpy-discussion mailing list