[Python-checkins] r53654 - python/trunk/Lib/idlelib/CallTips.py

kurt.kaiser python-checkins at python.org
Wed Feb 7 09:07:13 CET 2007


Author: kurt.kaiser
Date: Wed Feb  7 09:07:13 2007
New Revision: 53654

Modified:
   python/trunk/Lib/idlelib/CallTips.py
Log:
Handle AttributeError during calltip lookup


Modified: python/trunk/Lib/idlelib/CallTips.py
==============================================================================
--- python/trunk/Lib/idlelib/CallTips.py	(original)
+++ python/trunk/Lib/idlelib/CallTips.py	Wed Feb  7 09:07:13 2007
@@ -112,7 +112,7 @@
             namespace.update(__main__.__dict__)
             try:
                 return eval(name, namespace)
-            except NameError:
+            except (NameError, AttributeError):
                 return None
 
 def _find_constructor(class_ob):


More information about the Python-checkins mailing list