Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

The smiley emoji 😀 is U+1F600 which is outside of the Unicode Basic 
Multilingual Plane (BMP). IDLE's underlying graphical toolkit, Tcl/Tk, has 
problems with Unicode characters outside of the BMP, so this may not be fixable 
by us.

If all you want is to print the emoji, the best way is one of these:

    print('\U0001F600')

    print('\N{GRINNING FACE}')


or use another editor or IDE. Python itself has no problems here, it is just 
the IDLE editor.

I'm not a Tcl/Tk expert, but it looks like they may be working towards fixing 
this:

https://core.tcl-lang.org/tips/doc/trunk/tip/542.md

----------
nosy: +steven.daprano

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

Reply via email to