so I've learned that emacs cannot handle multi-line strings very well, for example printing big data structures in inferior python shell (invoked with run-python) is dangerous and usually ends with massive slowdown of whole emacs or crash. To bypass this, I print datastructures by elements and I ran into this odd behaviour:
for i in [('a', 'b') for j in range(150000)]:
print(i)
No lines involved here, still emacs behaves like they were: massive slowdown, usually crash.
This code is ok (why??):
for i in [(1, 2) for j in range(150000):
print(i)
BTW: I run emacs with -q, I've tried using alternative python shells (ipython) and I tried buffer-disable-undo.
Thanks for help, I really love the idea of having python shell in emacs and I've invested many hours into research about this, but without any results.
ipython
withinemacs
) without any problems. Could you clarify what you're looking for?