[Scipy-tickets] [SciPy] #1508: Bug that causes None to be accessed if a distribution is not named

SciPy Trac scipy-tickets@scipy....
Fri Sep 2 18:11:19 CDT 2011


#1508: Bug that causes None to be accessed if a distribution is not named
-------------------------+--------------------------------------------------
 Reporter:  bestephe     |       Owner:  somebody   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  scipy.stats  |     Version:  0.9.0      
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by josefpktd):

 I guess there are other instances in the doc string generation where this
 would fail.

 I consider name as a required argument.
 If we want to make it optional, then I think the best way would be to add
 a generic default name, for example

 {{{
 if name is None:
    name = 'Distribution'  # or name = ' '
 }}}

 I haven't checked this.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1508#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list