Ronald Oussoren <ronaldousso...@mac.com> added the comment:

With 8.6.10:

>>> print(ascii("😀")) raises the SyntaxError mentioned earlier
>>> print(ascii(input())) works and prints:
'\udced\udca0\udcbd\udced\udcb8\udc84'

In an editor window I don't get spurious text, but syntax colouring is a bit 
off: The text after the closing quote is coloured as if it is inside the string 
literal. That continues for the characters on the next line

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42318>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to