[SciPy-User] adding linear fitting routine

Daniele Nicolodi daniele at grinta.net
Wed Dec 4 18:00:47 EST 2013


On 04/12/2013 23:42, josef.pktd at gmail.com wrote:
> On Wed, Dec 4, 2013 at 5:29 PM, Daniele Nicolodi <daniele at grinta.net> wrote:
>> On 04/12/2013 23:00, David J Pine wrote:
>>> Otherwise, everything is returned, and returned as a dictionary.
>>
>> I'll repeat myself: a named tuple is the way to go, not a dictionary.
> 
> namedtuples have the disadvantage that users use tuple unpacking and
> then it breaks again backwards compatibility if any return is changed
> in future.

I frankly don't see how someone may want to extend the interface of a
linear fitting routine to return more information in the future.  I
think all the information required to design the interface right is
already available.

Cheers,
Daniele




More information about the SciPy-User mailing list