[NumPy-Tickets] [NumPy] #1706: Misleading help options

NumPy Trac numpy-tickets@scipy....
Mon Jan 10 04:21:29 CST 2011


#1706: Misleading help options
-------------------------+--------------------------------------------------
  Reporter:  hector1618  |       Owner:  somebody
      Type:  defect      |      Status:  closed  
  Priority:  normal      |   Milestone:  2.0.0   
 Component:  Other       |     Version:  1.5.0   
Resolution:  invalid     |    Keywords:          
-------------------------+--------------------------------------------------
Changes (by rgommers):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 shape and size are not methods but attributes:
 {{{
 In [1]: import numpy as np

 In [2]: A = np.matrix([[1,2],[3,4]])

 In [3]: A.shape
 Out[3]: (2, 2)
 }}}

 That is what the error message says too ("not callable" means it exists):
 {{{
 In [4]: A.shape()
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /Users/rgommers/<ipython console> in <module>()

 TypeError: 'tuple' object is not callable
 }}}

 I could imagine color-coding the IPython tab completion output would help
 a little, but that's a minor thing.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1706#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list