
Sept. 26, 2010
5:48 p.m.
On Sun, Sep 26, 2010 at 7:07 AM, Nick Coghlan <ncoghlan@gmail.com> wrote:
On Sun, Sep 26, 2010 at 9:05 PM, Mark Dickinson <dickinsm@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. -j