Title: IDLE hangs with absurdly long __repr__s
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.7, Python 3.6
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: bup, terry.reedy
Priority: normal Keywords:

Created on 2017-08-10 02:04 by bup, last changed 2017-08-10 17:36 by terry.reedy. This issue is now closed.

Messages (2)
msg300036 - (view) Author: Dan Snider (bup) * Date: 2017-08-10 02:04
Objects with a 500,000+ character __repr__ will cause the IDLE shell to hang and thus lose any progress on open windows. 200,000 (on a decent system) seems to be the tipping point where it can never recover.
msg300110 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-08-10 17:36
I am quite aware that tk text widgets (and probably other widgets) have line-length limitations.  Which issue this duplicates depends on what action you propose.  #28840 proposes addressing limits in the docs. #1442493 is about code changes.
Date User Action Args
2017-08-10 17:36:06terry.reedysetstatus: open -> closed
type: behavior
messages: + msg300110

resolution: duplicate
stage: resolved
2017-08-10 02:04:45bupcreate