diff options
author | Guido van Rossum <guido@python.org> | 2001-08-24 16:47:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-24 16:47:00 (GMT) |
commit | 705f0f5a91fec6f4edaa2d8fd4faf17d75c4700c (patch) | |
tree | e9acd5a916243681ed93b5a4b1596d306c99914f /Include/object.h | |
parent | 76f0cb85c2269e61a8e31c1d5133975ecef3ec70 (diff) | |
download | cpython-705f0f5a91fec6f4edaa2d8fd4faf17d75c4700c.zip cpython-705f0f5a91fec6f4edaa2d8fd4faf17d75c4700c.tar.gz cpython-705f0f5a91fec6f4edaa2d8fd4faf17d75c4700c.tar.bz2 |
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);
Diffstat (limited to 'Include/object.h')
0 files changed, 0 insertions, 0 deletions