From: Georg Brandl <georg@python.org> Date: Sat, 30 Aug 2008 13:17:39 +0000 (+0000) Subject: super() actually returns a super object. X-Git-Tag: v2.6rc1~116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5a3fb730f24f4ce49c5327d6d2c1823a912f8ea;p=python super() actually returns a super object. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index d463924f37..75bca72a10 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1215,7 +1215,8 @@ available. They are listed here in alphabetical order. .. function:: super(type[, object-or-type]) - Return the superclass of *type*. If the second argument is omitted the super + Return a "super" object that acts like the superclass of *type*. + 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. :func:`super` only works for