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

josef.pktd@gmai... josef.pktd@gmai...
Tue Oct 19 09:20:59 CDT 2010


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


>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>


More information about the SciPy-User mailing list