cpython: 477508efe4ab (original) (raw)

Mercurial > cpython

changeset 77315:477508efe4ab 2.7

Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name 'name' to 'expression' as the latter is what the string actually represents. The bug in this issue was only catching NameError and AttributeError when evaluating an expression that was not necessarily a name.

Terry Jan Reedy tjreedy@udel.edu
date Sun, 03 Jun 2012 00:58:36 -0400
parents 5b267381eea0
children d79c837b6bf3
files Lib/idlelib/CallTips.py
diffstat 1 files changed, 16 insertions(+), 14 deletions(-)[+] [-] Lib/idlelib/CallTips.py 30

line wrap: on

line diff

--- a/Lib/idlelib/CallTips.py +++ b/Lib/idlelib/CallTips.py @@ -71,16 +71,16 @@ class CallTips: if not sur_paren: return hp.set_index(sur_paren[0])

If there is a Python subprocess, get the calltip there. Otherwise, @@ -96,25 +96,27 @@ class CallTips: """ try: rpcclt = self.editwin.flist.pyshell.interp.rpcclt

def _find_constructor(class_ob):