jamescasbon/PyVCF — pull request #64 by lennax (2012-07-01 17:28:44+00:00)
Title: Tweaks to _AltRecord for possible multiple inheritance

A few minor changes to the inheritance pattern of _AltRecord and children. super() needs to be called even for objects that inherit from `object` to allow multiple inheritance, and every class passing **kwargs allows mixing of subclasses with custom args.

Also made _AltRecord into an abstract base class to enforce overloading of `__str__`.

An example of multiple inheritance I can imagine in this context would be, for example, a class `UnknownLoc` that could be combined with a variety of Alt types. Rough example: https://gist.github.com/3029028

References about use of super:
Praise: http://rhettinger.wordpress.com/2011/05/26/super-considered-super/
Caution: https://fuhm.net/super-harmful/