From: Raymond Hettinger Date: Mon, 16 Feb 2009 23:00:25 +0000 (+0000) Subject: Add explanation for super(type1, type2). X-Git-Tag: v2.7a1~2006 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c98a6d4dceecc5dd8b117212e07630d625e6565;p=thirdparty%2FPython%2Fcpython.git Add explanation for super(type1, type2). --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 7f5fa3ab2f48..fbb3f87367e9 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1175,7 +1175,7 @@ available. They are listed here in alphabetical order. 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. + ``issubclass(type2, type)`` must be true (this is useful for classmethods). .. note:: :func:`super` only works for :term:`new-style class`\es.