On Fri, Feb 07, 2020 at 10:33:00AM -0600, Nick Timkovich wrote:
I assume traits are a feature of another language, but not being familiar with it can you illustrate its need a bit better? Can you give an example in current Python, and how it could be made more clear with the notional trait syntax?
A decade ago, Michele Simionato wrote an excellent, highly detailed series of blog posts about super, multiple inheritance, mixins and traits. A good starting point is this post:
Traits are a more restrictive (and therefore safer) version of mixins, which are in turn a more restrictive (and therefore safer) version of multiple inheritance. See Michele's blog posts for more detail.