Python from Wise Guy's Viewpoint

Joe Marshall jrm at ccs.neu.edu
Mon Oct 20 10:52:27 EDT 2003


Joachim Durchholz <joachim.durchholz at web.de> writes:

> before/after/around don't offer anything that a simple call to an
> ancestor method wouldn't offer, and with less linguistic
> requirements. It looks as if somebody reimplemented Simula features
> without thinking about available improvements.
> Unless, of course, Lisp before/after/around semantics is different
> than a simple super/precursor/whatever call; in which case a more
> visible warning in the descriptions of before/after/around semantics
> would have been in order...

They are.  Using a simple super/precursor/whatever call delegates
responsibility to the subclass that rightly belongs to the superclass.




More information about the Python-list mailing list