Skip to content

Commit

Permalink
Improve tooltips by listing the most common argument pattern first.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettinger committed Jan 19, 2013
1 parent b077f9c commit ac7b49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ac7b49f

Please sign in to comment.