Lessons in Python multiple inheritance

While hacking away at the Python Koans, I came across multiple inheritance in Python, and thought it worthwhile to blog about some specifics with some concrete code. The code and explanation are here, and talk about

[1] Priority in multiple inheritance when multiple super classes contain methods that have the same name

[2] Priority in multiple-stage inheritance when the super class as well as super-super class contain methods that have the same name

[3] The method resolution ordering in Python multiple inheritance.

[4] The effect of calling super() in Python.

I’ll be back with more.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s