On 5/1/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 12:14 PM 5/1/2007 -0700, Guido van Rossum wrote: > >Suppose you couldn't assign to __class__ of a function (that's too > >messy to deal with in CPython) and you couldn't assign to its __code__ > >either. What proposed functionality would you lose? > > The ability to overload any function, without having to track down all the > places it's already been imported or otherwise saved, and change them to > point to a new function or a non-function object.
Frankly, I'm not sure this is worth all the proposed contortions. I'd be happy (especially as long as this is a pure-Python thing) to have to flag the base implementation explicitly with a decorator to make it overloadable. That seems KISS to me. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
