diff options
author | Guido van Rossum <guido@python.org> | 2001-08-24 16:47:00 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-24 16:47:00 +0000 |
commit | fa2ed176bb60ddff47994e7f4ce6e6f91b9d707b (patch) | |
tree | 673bd12beb709fe4253478aaf7b2a5b1d2752fe2 /Python/errors.c | |
parent | c6a86f80d444a446083b3f961c71d99baaf7c86e (diff) | |
download | cpython-fa2ed176bb60ddff47994e7f4ce6e6f91b9d707b.tar.gz |
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 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions