Terry J. Reedy added the comment:

#8231 will benefit if indirect imports of configHandler and idleConf into the 
user process can be eliminated.  I do not currently believe it is needed.  Not 
importing PyShell will go part way.

AutoComplete imports idleConf to get the popup delay. run imports AutoComplete 
to access fetch_completions -- in particular, the part after 'else', after the 
logic to determine which process the code is in and if in the idle process, 
whether to fetch in the idle process (-n) or user process.  Fetch_completions 
is a function and not properly a method -- it only uses self to access 
get_entity.  Get_entity is a two line function the also should not be a method. 
 It is only called at the one place and the only reason to not put in inline 
would be for testing.  The code after 'else' could be made a function in a 
separate module and the AutoComplete import eliminated.

CallTip does not import idleConf, nor does CallTipWindow or HyperParser or 
PyParse.

----------
components: +IDLE

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

Reply via email to