[issue27082] IDLE seriously degrades during and after printing large single line strings

2016-05-21 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> IDLE shell window gets very slow when displaying long lines

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27082] IDLE seriously degrades during and after printing large single line strings

2016-05-21 Thread Tim Peters

Tim Peters added the comment:

Ya, this annoyance has been there forever.  As I recall, the source of the 
problem is the Tk text widget (which slows horribly when displaying long lines).

--
nosy: +tim.peters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27082] IDLE seriously degrades during and after printing large single line strings

2016-05-21 Thread Raymond Hettinger

New submission from Raymond Hettinger:

IDLE should check the size of lines in a result string before printing it.  
Perhaps it should have a "..." after some user settable limit is reached.

>>> '=' * 10# Destroys IDLE
>>> json.load(somebigfile)  # Makes IDLE unusably sluggish

The problem only occurs when an individual line is long:

>>> s = 'some reasonable single line\n' * 1000)
>>> print(s)  # Separate lines are no problem
>>> s # A big single line repr renders IDLE sluggish

Note, the sluggishness persists across sessions -- a "Restart Shell" doesn't 
help.

In my Python classes, this is a common and recurring problem that negatively 
impacts the learner's user experience.

--
assignee: terry.reedy
components: IDLE
messages: 266041
nosy: rhettinger, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE seriously degrades during and after printing large single line 
strings
type: resource usage

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com