commit | 705f0f5a91fec6f4edaa2d8fd4faf17d75c4700c | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Aug 24 16:47:00 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Aug 24 16:47:00 2001 +0000 |
tree | e9acd5a916243681ed93b5a4b1596d306c99914f | |
parent | 76f0cb85c2269e61a8e31c1d5133975ecef3ec70 [diff] |
Add 'super', another new object type with magical properties. super(type) -> unbound super object super(type, obj) -> bound super object; requires isinstance(obj, type) Typical use to call a cooperative superclass method: class C(B): def meth(self, arg): super(C, self).meth(arg);