Terry J. Reedy <tjre...@udel.edu> added the comment:

Each  '(' and ')' in an argument string such as in 
f('()(()()((((())))))))))))))') causes a blink.  Ditto with a comment withing 
the call.  A related bug is that any unquoted '(', as when one enters 
f((a+b)*c), dismisses the tip. 

Proposed partial solution: before displaying a tip, record the opening index 
(before the opening '(').  When there is an opening index, and '(' is keyed, 
ignore it; no parsing.  When the tip is closed (properly), removed the open 
index.  I believe paren matching would work properly.

The cause of blinks for ')' in strings and comments would need to be found and 
remedied.

----------
nosy: +cheryl.sabella, taleinat
title: IDLE yellow hint frame blinks when entering () in strings in 
functions/classes -> IDLE: properly handle '(' and ')' within calls
versions: +Python 3.10 -Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40511>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to