[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
steven.bethard at gmail.com
Tue May 15 03:13:01 CEST 2007
On 5/14/07, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 04:19 PM 5/14/2007 -0700, Guido van Rossum wrote:
> >But can you at least share enough of the problem so others can look at
> >it and either suggest a solution or agree with your conclusion?
> Sure. Take a look at peak.rules.core (while keeping in mind all the
> bits that will be changed per your prior requests):
> What you'll notice is that the method combination framework (Method,
> MethodList, combine_actions, always_overrides, and merge_by_default,
> if you don't count the places these things get called) is in fact
> most of the code, with relatively little of it being the actual
> implementation of Around, Before, or After (or even generic functions
Seems to me that from this link what we're missing is a good
explanation of how "Method" works since that is the base for Before,
After, etc. Thus I'd suggest ripping out the Before, After, etc.
sections in the PEP, and replacing them with a section on how Method
works. You can use Before and After as examples of how to extend
(I'm fine with Before and After being in the module. It's just
confusing that they take such a prominent role in the PEP without the
mechanism behind them being explained enough.)
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
--- Bucky Katt, Get Fuzzy
More information about the Python-3000