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~164^2~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac7b49f4076a4336915d13a4aa19feaeadd29d62;p=python Improve tooltips by listing the most common argument pattern first. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 339e69ec4b..0a79f8bef8 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"