[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc. (original) (raw)

Jim Jewett jimjjewett at gmail.com
Mon May 14 21:43:22 CEST 2007


On 5/14/07, Phillip J. Eby <pje at telecommunity.com> wrote:

I don't see what the benefit is of making people implement their own versions of @before, @after, and @around, which then won't interoperate properly with others' versions of the same thing. Even if we leave in place the MethodList base class (which Before and After are subclasses of), one of its limitations is that it can only combine methods of the same type.

That sounds broken; could you use a numeric precedence with default levels, like the logging library does?

-jJ



More information about the Python-3000 mailing list