From: Raymond Hettinger Date: Sat, 19 Jan 2013 07:23:11 +0000 (-0800) Subject: Improve tooltips by listing the most common argument pattern first. X-Git-Tag: v2.7.4rc1~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac7b49f4076a4336915d13a4aa19feaeadd29d62;p=thirdparty%2FPython%2Fcpython.git Improve tooltips by listing the most common argument pattern first. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 339e69ec4b97..0a79f8bef82d 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -6679,8 +6679,8 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds) } PyDoc_STRVAR(super_doc, -"super(type) -> unbound super object\n" "super(type, obj) -> bound super object; requires isinstance(obj, type)\n" +"super(type) -> unbound super object\n" "super(type, type2) -> bound super object; requires issubclass(type2, type)\n" "Typical use to call a cooperative superclass method:\n" "class C(B):\n"