A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-July/067521.html below:

[Python-Dev] Problem with super() usage

[Python-Dev] Problem with super() usage [Python-Dev] Problem with super() usageWillem Broekema metawilm at gmail.com
Tue Jul 18 18:22:11 CEST 2006
On 7/18/06, glyph at divmod.com <glyph at divmod.com> wrote:
> C++ originally specified multiple inheritance, but it wasn't "cooperative" in
> the sense that super is.  In Lisp, though, where cooperative method dispatch
> originated, call-next-method does basically the same thing in the case where
> there's no next method: it calls "no-next-method" which signals a generic
> error.

Don't forget Lisp's "next-method-p", which tests ("-p" for
"predicate") if there is any next method to call. Highly elegant, I'd
say.

> http://www.lisp.org/HyperSpec/Body/locfun_call-next-method.html

http://www.lisp.org/HyperSpec/Body/locfun_next-method-p.html

- Willem
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4