[SciPy-User] _construct_default_doc extradoc=None bug in latest svn of scipy.stats.distributions

Warren Weckesser warren.weckesser@enthought....
Tue Oct 19 11:36:08 CDT 2010


On Tue, Oct 19, 2010 at 9:20 AM, <josef.pktd@gmail.com> wrote:

> On Tue, Oct 19, 2010 at 10:10 AM, John Reid <j.reid@mail.cryst.bbk.ac.uk>
> wrote:
> > On 19/10/10 14:55, josef.pktd@gmail.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.
>
> Josef
>
>
>


Fixed in r6848:  http://projects.scipy.org/scipy/changeset/6848

John, thanks for reporting the problem.


Warren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101019/e6c69b88/attachment.html 


More information about the SciPy-User mailing list