Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev
Re: cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle.
 

Index | Next | Previous | View Flat


g.brandl at gmx

May 27, 2012, 11:53 PM


Views: 139
Permalink
Re: cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle.

Am 28.05.2012 03:55, schrieb terry.reedy:
> http://hg.python.org/cpython/rev/4a7582866735
> changeset: 77195:4a7582866735
> branch: 3.2
> parent: 77189:6737c2ca98ee
> user: Terry Jan Reedy <tjreedy [at] udel>
> date: Sun May 27 21:29:17 2012 -0400
> summary:
> Issue12510: Attempting to get invalid tooltip no longer closes Idle.
> Original patch by Roger Serwy.
>
> files:
> Lib/idlelib/CallTips.py | 9 ++++++---
> Misc/NEWS | 3 +++
> 2 files changed, 9 insertions(+), 3 deletions(-)
>
>
> diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py
> --- a/Lib/idlelib/CallTips.py
> +++ b/Lib/idlelib/CallTips.py
> @@ -110,7 +110,9 @@
> namespace.update(__main__.__dict__)
> try:
> return eval(name, namespace)
> - except (NameError, AttributeError):
> + # any exception is possible if evalfuncs True in open_calltip
> + # at least Syntax, Name, Attribute, Index, and Key E. if not

Is something missing here? The comment text seems cut off.

> + except:
> return None

"except Exception" may be better here.

Georg

_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Subject User Time
Re: cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle. g.brandl at gmx May 27, 2012, 11:53 PM
    Re: cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle. tjreedy at udel May 28, 2012, 6:44 PM
        Re: cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle. brian at python May 28, 2012, 6:48 PM
    Re: cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle. tjreedy at udel May 28, 2012, 7:59 PM
        Re: cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle. tjreedy at udel May 29, 2012, 5:08 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.