[Tutor] class questions

Payal payal-python at scriptkitchen.com
Sun Jun 27 16:13:52 CEST 2010

Hi Hugo,

On Sun, Jun 27, 2010 at 01:27:37PM +0200, Hugo Arts wrote:
> Here's my attempt. Consider this simple Diamond hierarchy:
> Now, with this diagram the following code probably doesn't do what you expect:

Actually, it does what is expected. The old mro specifically says,
bottom-top, left-right. So we expected D-B-A-C-A.
Steven says in some cases even this simple logic of bottom-top,
left-right search will not work. As he says, a simple example of it
failing is diffclt to write, so meanwhile I will take his word for it.

Thanks for the help.
With warm regards,

More information about the Tutor mailing list