[issue26627] IDLE incorrectly labeling error as internal

Tadhg McDonald-Jensen report at bugs.python.org
Wed Mar 23 22:50:09 EDT 2016


Tadhg McDonald-Jensen added the comment:

other then bdb.py all of the excluded modules are imported into idlelib.run so that line could be replaced with:

import bdb
exclude = (__file__, rpc.__file__, threading.__file__, 
           queue.__file__, RemoteDebugger.__file__, bdb.__file__)

although it is really only necessary for run, rpc and RemoteDebugger since they are imported through `idlelib.__` so it could also use a notation like this:


exclude = ("idlelib/run.py", "idlelib/rpc.py", "threading.py", "queue.py",
           "idlelib/RemoteDebugger.py", "bdb.py")

although this would need to make use of os.path.join or equivalent to be cross compatible.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26627>
_______________________________________


More information about the Python-bugs-list mailing list