Sebastian Haase wrote:

>On Friday 15 September 2006 10:00, Travis Oliphant wrote:
>  
>
>>Sebastian Haase wrote:
>>    
>>
>>>Hi,
>>>
>>>what I'm asking is if numpy has an equivalent to numarray's info() 
>>>      
>>>
>function:
>  
>
>>>>>>na.arange(10).info()
>>>>>>            
>>>>>>
>>numpy.numarray.info(numpy.arange(10))
>>
>>(get recent SVN as there were some bugs just fixed.
>>
>>-Travis
>>    
>>
>
>Thanks,
>
>should this maybe also be added somewhere in the numpy module itself !?
>I guess the question is, what the original intent was for numarray to put it 
>in (only for debugging ?) -- then we could decide if this would also make 
>sense for numpy.
>
>I have never used numpy.info(obj) - I don't know what is does (compared to 
>__doc__)   
>
It prints the doc string of an object searching for it better than help 
seems to do and without a "pager".

Compare numpy.info(numpy.sin) versus help(numpy.sin)

I don't know what the info method was for other than debugging.  

What about having the __doc__ attribute of an ndarray return the info?


-Travis


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to