Everything is an object in python - object class and type class

Ian Kelly ian.g.kelly at gmail.com
Tue Jun 2 20:49:17 EDT 2015


On Tue, Jun 2, 2015 at 3:47 PM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> The classic response to "Super Considered Harmful" for those who may be
> interested is
> https://rhettinger.wordpress.com/2011/05/26/super-considered-super/ and
> recently https://www.youtube.com/watch?v=EiOglTERPEo

I feel slightly cheated. In the video he promises to show how to do
dependency injection using super, but in both of the examples given,
every instance of "super()" could simply be replaced with "self" and
the result would be the same. That's just taking advantage of the MRO,
not super.



More information about the Python-list mailing list