Kaydet (Commit) ac7b49f4 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Improve tooltips by listing the most common argument pattern first.

üst b077f9ce
...@@ -6679,8 +6679,8 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds) ...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment