[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 11 03:20:52 CEST 2007


Phillip J. Eby wrote:

> That's because @around methods haven't been introduced at that point in 
> the PEP; the following section introduces @around and explains that 
> @arounds are called before the befores, etc.

Hmm, so it's not the case that @before methods are
called "before" all other methods. That makes it even
more confusing.

I'm now even more of the opinion that this is too
complicated for Python's first generic function system.
"If it's hard to explain, it's probably a bad idea."

> Of course, it's also stated in the PEP that it's basically copying 
> CLOS's "standard method combination", but I really should add 
> appropriate references for that.

Relying on people knowing about CLOS in order to follow
this stuff doesn't seem like a good idea.

--
Greg


More information about the Python-3000 mailing list