Tekkaman

导航

 

super

  Return a proxy object that delegates method calls to a parent or sibling class of type. This is useful for accessing inherited methods that have been overridden in a class. 

  If the second argument is omitted, the super object returned is unbound.

  If the second argument is an object, isinstance(obj, type) must be true.

  If the second argument is a type, issubclass(type2, type) must be true (this is useful for classmethods). 

  Note super() only works for new-style classes.

  

  a typical superclass call looks like this:

  

posted on 2016-07-18 13:15  Tekkaman  阅读(216)  评论(0编辑  收藏  举报