2013年5月18日 星期六

Python: understanding python super() and __init__() methods


Super lets you avoid referring to the base class explicitly, which can be nice. But the main advantage comes with multiple inheritance, where all sorts of fun stuff can happen. See the standard docs on superif you haven't already.




Reference:
1. http://stackoverflow.com/questions/576169/understanding-python-super-and-init-methods

沒有留言:

張貼留言