[issue25254] Idle: debugger source line highlighting fails again
Terry J. Reedy
report at bugs.python.org
Mon Oct 12 04:01:21 CEST 2015
Terry J. Reedy added the comment:
No. Turning it on, I discovered why off is default. When it on, it sometimes does surprising things on IDLE. For instance, print('x') is (usually) a builtin and can not be stepped into. However, it calls sys.stdout.write('x'+'\n'). Under Idle, user process sys.stdout is PyShell.Pseudofile, so when source is checked, 'step' on a line with print opens the file and highlights lines in the write method.
Step should ask before opening a file, and/or a 'smart step' is needed.
----------
resolution: -> not a bug
stage: test needed -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25254>
_______________________________________
More information about the Python-bugs-list
mailing list