Terry J. Reedy added the comment:

If you start IDLE from the console with 'python -m idlelib' you should see a 
TclError message when pasting.  This is a known limitation of tcl/tk.  Printing 
gives a traceback in IDLE's shell.
>>> print('\U00020BB7')
Traceback (most recent call last):
  File "<pyshell#26>", line 1, in <module>
    print('\U00020BB7')
  File "C:\Programs\Python35\lib\idlelib\PyShell.py", line 1344, in write
    return self.shell.write(s, self.tags)
UnicodeEncodeError: 'UCS-2' codec can't encode character '\U00020bb7' in 
position 0: Non-BMP character not supported in Tk

----------
nosy: +terry.reedy
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> IDLE crashes when pasting non-BMP unicode char on Py3
title: IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with 
non-BMP characters -> IDLE for Python 3.5.1 for x64 Windows exits when pasted a 
string with non-BMP characters

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

Reply via email to