3 ms·
"One place we declared defeat was in very long lines" This still haunts me today. IDLE, the IDE-like editor that comes with Python, struggles with long lines.
by Luyt 15y ago
"One place we declared defeat was in very long lines"
This still haunts me today. IDLE, the IDE-like editor that comes with Python, struggles with long lines. Execute something like this:
print list(range(10000))
...and your whole Python Shell window (which is essentially a Tk text control) becomes so slow and unresponsive that it's better to close it, and/or restart IDLE.
- hp 15y agoYeah, it sucks. It's pretty hard to fix though, one of those bugs where the multi-week or even multi-month effort to fix it probably isn't ever going to make sense to anybody. (Say IDLE in particular is bothering you; you could probably spend a very short time just hacking it to truncate that string before putting it in the widget, vs. the likely gigantic task of fixing the widget. Everyone is making that same calculation whenever they get annoyed by this.)