1

Python has the ability to make multiple inheritance, I recently learned about a technique to use mixins. My question is, how do mixins differ from standard multiple inheritance in Python? I am used to mixins in Scala and Ruby, where they are quite distinct from multiple inheritance (although still related).

To clarify, I am specifically asking about if there's any mechanical difference, or if this is just style/duck typing.

3
  • 2
    In Python, mixins are an application of multiple inheritance. Commented Jan 12, 2018 at 21:05
  • Is there any mechanical difference between the two? Or is it all just convention? Commented Jan 12, 2018 at 21:09
  • @Snark I will say multiple inheritance is just one of implementation of mixins concept. Commented Jan 12, 2018 at 21:11

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.