[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed May 16 03:01:19 CEST 2007
Phillip J. Eby wrote:
> This is the driving force for having before and after methods: allowing
> independent hooks to be registered, while ensuring that they can't mess
> anything up (as long as they stick to their own business).
Some discipline is still required to make sure they do
stick to their business. The same result could be achieved
with only one order-independent decorator instead of two,
and an additional discipline of always calling the next
method.
--
Greg
More information about the Python-3000
mailing list