[Numpy-discussion] Release of 1.0b5 this weekend

Charles R Harris charlesr.harris at gmail.com
Tue Aug 29 14:36:33 CDT 2006


Hi,

On 8/29/06, Tim Hochberg <tim.hochberg at ieee.org> wrote:
>
>
> -0.5 from me if what we're talking about here is having mutating methods
> return self rather than None. Chaining stuff is pretty, but having
> methods that mutate self and return self looks like a source of elusive
> bugs to me.
>
> -tim


But how is that any worse than the current mutating operators? I think the
operating principal is that methods generally work in place, functions make
copies. The exceptions to this rule need to be noted.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060829/df4d78ec/attachment.html 


More information about the Numpy-discussion mailing list