[Numpy-discussion] Release of 1.0b5 this weekend

Rudolph van der Merwe rudolphv at gmail.com
Tue Aug 29 14:15:30 CDT 2006


This definitely gets my vote as well (for what it's worth).

R.

On 8/29/06, Fernando Perez <fperez.net at gmail.com> wrote:
> +1 for more 'return self' at the end of methods which currently don't
> return anything (well, we get the default None), as long as it's
> sensible.  I really like this 'message chaining' style of programming,
> and it annoys me that much of the python stdlib gratuitously prevents
> it by NOT returning self in places where it would be a perfectly
> sensible thing to do.
>
> I find it much cleaner to write
>
> x = foo.bar().baz(param).frob()
>
> than
>
> foo.bar()
> foo.baz(param)
> x = foo.frob()
>
> but perhaps others disagree.
>
> Cheers,
>
> f

-- 
Rudolph van der Merwe
Karoo Array Telescope / Square Kilometer Array - http://www.ska.ac.za




More information about the Numpy-discussion mailing list