[issue33610] IDLE: Make multiple improvements to CodeContext

Terry J. Reedy report at bugs.python.org
Mon Dec 14 23:03:27 EST 2020


Terry J. Reedy <tjreedy at udel.edu> added the comment:

E4. Max context lines = 0 is treated as infinity.  For depth 0, "self.info[-self.context_depth:]" is whole slice.  I don't remember if this is intended (if one does not want context, don't toggle it on), but it is not documented in settings help or doc section.  In any case,
  offset = max(1, lines - self.context_depth) - 1
fails with depth 0.

E5. test_codecontext is affected by user customization, but should not be.

E6. Bad bug make CC useless.  See #42638.

----------
dependencies: +IDLE: Context lines not working correctly
versions: +Python 3.10 -Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33610>
_______________________________________


More information about the Python-bugs-list mailing list