[SciPy-User] _construct_default_doc extradoc=None bug in latest svn of scipy.stats.distributions
Tue Oct 19 09:20:59 CDT 2010
On Tue, Oct 19, 2010 at 10:10 AM, John Reid <email@example.com> wrote:
> On 19/10/10 14:55, firstname.lastname@example.org wrote:
>> It's good to report it here, but you could also open a ticket at
>> 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.
> SciPy-User mailing list
More information about the SciPy-User