[Numpy-discussion] Re: Vote: complex64 vs complex128

Arnd Baecker arnd.baecker at web.de
Wed Apr 5 01:51:08 CDT 2006


On Tue, 4 Apr 2006, Robert Kern wrote:

> Tim Hochberg wrote:

[...]

> >     >>> help(complex128)
> >    class complex128scalar(complexfloatingscalar, complex)
> >     |  complex128: composed of two 64 bit floats
> >     |
> >     |  Method resolution order:
> >     |      complex128scalar
> >     |      complexfloatingscalar
> >     |      inexactscalar
> >     |      numberscalar
> >     |      genericscalar
> >     |      complex
> >     |      object
> >    ...

I am puzzled why this does not show up with Ipython:

In [1]:import numpy
In [2]:numpy.complex128?
Type:           type
Base Class:     <type 'type'>
String Form:    <type 'complex128scalar'>
Namespace:      Interactive
Docstring:
    <no docstring>

whereas

In [3]:help(numpy.complex128)

shows the above!
So this might be more of an IPython question (I am running IPython
0.7.2.svn), but maybe numpy does some magic tricks to hide the docs from
IPython (surely not on purpose ...)?
It seems that numpy.complex128.__doc__ is None.

Best, Arnd







More information about the Numpy-discussion mailing list