unit testing class hierarchies

Demian Brecht demianbrecht at gmail.com
Tue Oct 2 10:05:49 EDT 2012


> [1] in C++ I would call that a "mixin"

Mixins are perfectly valid Python constructs as well and are perfectly 
valid (imho) for this use case.

On a side note, I usually append a "Mixin" suffix to my mixin classes in 
order to make it obvious to the reader.



-- 
Demian Brecht
@demianbrecht
http://demianbrecht.github.com



More information about the Python-list mailing list