[Python-checkins] cpython (2.7): Improve tooltips by listing the most common argument pattern first.

raymond.hettinger python-checkins at python.org
Sat Jan 19 08:23:48 CET 2013


http://hg.python.org/cpython/rev/bfe38710d4e6
changeset: 81586:bfe38710d4e6
branch: 2.7
user: Raymond Hettinger <python at rcn.com>
date: Fri Jan 18 23:23:11 2013 -0800
summary:
 Improve tooltips by listing the most common argument pattern first.
files:
 Objects/typeobject.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -6679,8 +6679,8 @@
 }
 
 PyDoc_STRVAR(super_doc,
+"super(type, obj) -> bound super object; requires isinstance(obj, type)\n"
 "super(type) -> unbound super object\n"
-"super(type, obj) -> bound super object; requires isinstance(obj, type)\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"
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /