[Python-checkins] r50776 - python/trunk/Lib/idlelib/CallTips.py python/trunk/Lib/idlelib/NEWS.txt

kurt.kaiser python-checkins at python.org
Sun Jul 23 06:19:50 CEST 2006


Author: kurt.kaiser
Date: Sun Jul 23 06:19:49 2006
New Revision: 50776

Modified:
   python/trunk/Lib/idlelib/CallTips.py
   python/trunk/Lib/idlelib/NEWS.txt
Log:
Tooltips failed on new-syle class __init__ args.  Bug 1027566 Loren Guthrie


Modified: python/trunk/Lib/idlelib/CallTips.py
==============================================================================
--- python/trunk/Lib/idlelib/CallTips.py	(original)
+++ python/trunk/Lib/idlelib/CallTips.py	Sun Jul 23 06:19:49 2006
@@ -127,7 +127,7 @@
     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:

Modified: python/trunk/Lib/idlelib/NEWS.txt
==============================================================================
--- python/trunk/Lib/idlelib/NEWS.txt	(original)
+++ python/trunk/Lib/idlelib/NEWS.txt	Sun Jul 23 06:19:49 2006
@@ -3,6 +3,8 @@
 
 *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
 


More information about the Python-checkins mailing list