summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorJeff Epler <jepler@unpythonic.net>2020-08-25 11:46:49 -0500
committerJeff Epler <jepler@unpythonic.net>2020-08-25 11:47:50 -0500
commitc0753c1afb09dab873da02e6f98a492cb913f0e9 (patch)
tree3d829bcd1dcdac34310ddf16f992802b87ebae99 /shared-module
parente9bc8e892b5ccc88782d8aaf08868b0094eae414 (diff)
mp_obj_print_helper: Handle a ctrl-c that comes in during printing
In #2689, hitting ctrl-c during the printing of an object with a lot of sub-objects could cause the screen to stop updating (without showing a KeyboardInterrupt). This makes the printing of such objects acutally interruptable, and also correctly handles the KeyboardInterrupt: ``` >>> l = ["a" * 100] * 200 >>> l ['aaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaa', Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyboardInterrupt: >>> ```
Diffstat (limited to 'shared-module')
0 files changed, 0 insertions, 0 deletions