Marc D.M. wrote: > On Wed, 2006-09-06 at 22:49 -0700, Michael Spencer wrote: >> If you're really hunting for speed, there is a significant boost available >> in >> the common special case of a python function curried with one positional >> argument. In this case, you can [ab]use the method binding machinery...
> > ...it changes the type of the curry from function to bound >> method. >> > I like this idea, but I'm curious about that last sentence. Is this > necessarily a bad thing? Or maybe I should ask, why does it matter, > function vs bound method. Aren't they both callable? > > Or am I missing something? > Yes, they're both callable. The differences are likely to matter in edge cases - but you found one already: the behavior of the __get__ method. Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---
