Wednesday, Apr 30, 2008 [Tweets] [Favorites]

How super() in Python 3 Works

Armin Ronacher:

In the last weeks something remarkable happened in the Python3 sources: self kinda became implicit. Not in function definitions, but in super calls. But not only self: also the class passed to super. That’s remarkable because it means that the language shifts into a completely different direction.

I’m generally not a fan of magic, but I don’t really see the problem with adding an abbreviated form for the most common uses of super. That it was so verbose before always seemed to me to be a wart on an otherwise clean language.

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment