From c6bacd5606cbf3f76ae7e116e425a61d291c68fc Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Sun, 23 Jul 2006 04:19:49 +0000 Subject: [PATCH] Tooltips failed on new-syle class __init__ args. Bug 1027566 Loren Guthrie --- Lib/idlelib/CallTips.py | 2 +- Lib/idlelib/NEWS.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index 47a1d55d3b..997eb13a0f 100644 --- a/Lib/idlelib/CallTips.py +++ b/Lib/idlelib/CallTips.py @@ -127,7 +127,7 @@ def get_arg_text(ob): argText = "" if ob is not None: argOffset = 0 - if type(ob)==types.ClassType: + if type(ob) in (types.ClassType, types.TypeType): # Look for the highest __init__ in the class chain. fob = _find_constructor(ob) if fob is None: diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 4dc25057da..5ea5b0e702 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -3,6 +3,8 @@ What's New in IDLE 1.2c1? *Release date: XX-XXX-2006* +- Tooltips failed on new-syle class __init__ args. Bug 1027566 Loren Guthrie + - Avoid occasional failure to detect closing paren properly. Patch 1407280 Tal Einat -- 2.40.0