Improve tooltips by listing the most common argument pattern first.

This commit is contained in:
Raymond Hettinger 2013-01-18 23:23:11 -08:00
parent b077f9ce9f
commit ac7b49f407

View file

@ -6679,8 +6679,8 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds)
} }
PyDoc_STRVAR(super_doc, PyDoc_STRVAR(super_doc,
"super(type) -> unbound super object\n"
"super(type, obj) -> bound super object; requires isinstance(obj, type)\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" "super(type, type2) -> bound super object; requires issubclass(type2, type)\n"
"Typical use to call a cooperative superclass method:\n" "Typical use to call a cooperative superclass method:\n"
"class C(B):\n" "class C(B):\n"