[Scipy-tickets] [SciPy] #1862: Allow canonical keyword arguments for distribution parameters

SciPy Trac scipy-tickets@scipy....
Sat Mar 9 10:50:11 CST 2013


#1862: Allow canonical keyword arguments for distribution parameters
-----------------------------+----------------------------------------------
 Reporter:  chrisfonnesbeck  |       Owner:  rgommers   
     Type:  enhancement      |      Status:  new        
 Priority:  low              |   Milestone:  Unscheduled
Component:  scipy.stats      |     Version:  0.11.0     
 Keywords:                   |  
-----------------------------+----------------------------------------------

Comment(by chrisfonnesbeck):

 BTW, if you were to stick with strictly positional arguments, then I think
 you must make the following raise an error.

 {{{
 b = binom(n=10, p=0.3)
 }}}

 At present it does not, which makes the user think they have properly
 parameterized a binomial distribution.

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


More information about the Scipy-tickets mailing list