[Numpy-discussion] drawing the line (was: Adding .abs() method to the array object)
josef.pktd@gmai...
josef.pktd@gmai...
Tue Feb 26 12:29:45 CST 2013
On Tue, Feb 26, 2013 at 1:11 PM, <josef.pktd@gmail.com> wrote:
> On Tue, Feb 26, 2013 at 12:33 PM, eat <e.antero.tammi@gmail.com> wrote:
>> Huh,
>>
>> On Tue, Feb 26, 2013 at 5:03 PM, <josef.pktd@gmail.com> wrote:
>>>
>>> On Tue, Feb 26, 2013 at 9:39 AM, Benjamin Root <ben.root@ou.edu> wrote:
>>> >
>>> >
>>> > On Mon, Feb 25, 2013 at 8:23 PM, Alan G Isaac <alan.isaac@gmail.com>
>>> > wrote:
>>> >>
>>> >> I'm hoping this discussion will return to the drawing the line
>>> >> question.
>>> >>
>>> >>
>>> >> http://stackoverflow.com/questions/8108688/in-python-when-should-i-use-a-function-instead-of-a-method
>>> >>
>>> >> Alan Isaac
>>> >
>>> >
>>> > Proposed line:
>>> >
>>> > Reduction methods only.
>>> >
>>> > Discuss...
>>>
>>> arr.dot ?
>>>
>>> the 99 most common functions for which chaining looks nice.
>>
>> Care to elaborate more for us less uninitiated?
>
> partially a joke. I don't see any good and simple rule to restrict the
> number of methods.
99 was just the first number that came to mind that sounded exaggerated enough.
(I like methods and will use __abs__ from now on, but I won't argue
much in any direction of changes.)
Josef
http://en.wikipedia.org/wiki/99_Luftballons
>
> dot was added as a method a few numpy versions ago, because it is
> painful to write nested or sequential dot products. Alan was in favor
> of the dot method and of matrix algebra because it's much easier on
> new users who come from a background that has a dot product as "*" or
> similar operator.
>
> As Skipper, I think the number of methods is not really huge
> (especially not numerical operations)
>
> Josef
>
>>
>> Regards,
>> -eat
>>>
>>>
>>> Josef
>>>
>>> >
>>> >
>>> > Ben Root
>>> >
>>> > _______________________________________________
>>> > NumPy-Discussion mailing list
>>> > NumPy-Discussion@scipy.org
>>> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>> >
>>> _______________________________________________
>>> NumPy-Discussion mailing list
>>> NumPy-Discussion@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
>>
>>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion@scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
More information about the NumPy-Discussion
mailing list