[Python-3000] PEP Parade (original) (raw)

Guido van Rossum guido at python.org
Tue May 1 23:04:35 CEST 2007


On 5/1/07, Phillip J. Eby <pje at telecommunity.com> 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/)



More information about the Python-3000 mailing list