[Python-ideas] Including elementary mathematical functions in the python data model
jason.orendorff at gmail.com
Sun Sep 26 17:48:35 CEST 2010
On Sun, Sep 26, 2010 at 7:07 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On Sun, Sep 26, 2010 at 9:05 PM, Mark Dickinson <dickinsm at gmail.com> wrote:
>> A less invasive proposal would be just to introduce __sin__, etc.
>> magic methods [...]
>> I'm not sure how I feel about the entailed magic method explosion, though.
> Couple that with the extra function call overhead (since these
> wouldn't have real typeslots) and it still seems like a less than
> stellar idea.
This could certainly be implemented so as to be fast for floats and
flexible for everything else.
More information about the Python-ideas