[SciPy-User] _construct_default_doc extradoc=None bug in latest svn of scipy.stats.distributions
Tue Oct 19 11:36:08 CDT 2010
On Tue, Oct 19, 2010 at 9:20 AM, <email@example.com> wrote:
> On Tue, Oct 19, 2010 at 10:10 AM, John Reid <firstname.lastname@example.org>
> > On 19/10/10 14:55, email@example.com wrote:
> >> It's good to report it here, but you could also open a ticket at
> >> http://projects.scipy.org/scipy
> > http://projects.scipy.org/scipy/ticket/1316
> >> It's clearly a bug, I think, it's also be possible to do
> >> def _construct_default_doc(self, longname=None, extradoc='')
> >> but I haven't looked at the source yet.
> > Off the top of my head I thought it was preferred to have default
> > arguments be None and then reassign in the function body although I
> > couldn't tell you why.
> There are possible problems or one has to be more careful with default
> arguments that are mutable, strings and numbers are safe.
Fixed in r6848: http://projects.scipy.org/scipy/changeset/6848
John, thanks for reporting the problem.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User