[Python-3000] Generic function PEP won't make it in time

Phillip J. Eby pje at telecommunity.com
Fri Apr 27 17:22:07 CEST 2007


At 07:25 PM 4/27/2007 +1200, Greg Ewing wrote:
>Talin wrote:
>
> > I kind of wonder about the idea of implementing generic functions using
> > generic functions.
>
>I'd be worried about efficiency. Generic functions on
>top of generic functions sounds like you would have two
>layers of dynamic lookup to go through instead of one.

No, it only affects method addition and index updating (which only occurs 
when new types are encountered or new methods are added).  You don't need 
the generic functions in order to dispatch generic functions, only to build 
the dispatch tables.



More information about the Python-3000 mailing list