Working with the Python Super Function (JNNC Technologies)


Python 2.2 saw the introduction of a built-in function called “super,” which returns a proxy object to delegate method calls to a class – which can be either parent or sibling in nature.
That description may not make sense unless you have experience working with Python, so we’ll break it down.
Essentially, the super function can be used to gain access to inherited methods – from a parent or sibling class – that has been overwritten in a class object.

0 Comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();