This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE hangs with absurdly long __repr__s
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.7, Python 3.6
process
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 2022-04-11 14:58 by admin. 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.
History
Date User Action Args
2022-04-11 14:58:49adminsetgithub: 75351
2017-08-10 17:36:06terry.reedysetstatus: open -> closed
type: behavior
messages: + msg300110

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