Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: Mostly fixed by PR 16545 (see issue13153). The original example is now passed.
>>> raise Exception('\U0001f603') Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> raise Exception('\U0001f603') Exception: 😃 >>> But you can still cause a restart of the shell by using surrogate characters: >>> raise Exception('\ud800') Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> raise Exception('\ud800') Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> raise Exception('\ud800') ================================ RESTART: Shell ================================ >>> ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36698> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com