This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients TheMathsGod, serhiy.storchaka, terry.reedy
Date 2019-10-04.12:00:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570190420.99.0.258940205621.issue36698@roundup.psfhosted.org>
In-reply-to
Content
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 ================================
>>>
History
Date User Action Args
2019-10-04 12:00:21serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, TheMathsGod
2019-10-04 12:00:20serhiy.storchakasetmessageid: <1570190420.99.0.258940205621.issue36698@roundup.psfhosted.org>
2019-10-04 12:00:20serhiy.storchakalinkissue36698 messages
2019-10-04 12:00:20serhiy.storchakacreate