Message340820
I haven’t looked at the code, but I suspect Idle implements a custom “sys.displayhook”:
>>> help(sys.displayhook)
Help on function displayhook in module idlelib.rpc:
displayhook(value)
Override standard display hook to use non-locale encoding
>>> sys.displayhook('\N{ROCKET}')
'\U0001f680'
>>> sys.__displayhook__('\N{ROCKET}')
Traceback (most recent call last):
File "<pyshell#20>", line 1, in <module>
sys.__displayhook__('\N{ROCKET}')
File "/usr/lib/python3.5/idlelib/PyShell.py", line 1344, in write
return self.shell.write(s, self.tags)
UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 1-1: Non-BMP character not supported in Tk |
|
Date |
User |
Action |
Args |
2019-04-25 00:55:41 | martin.panter | set | recipients:
+ martin.panter, terry.reedy, belopolsky, THRlWiTi |
2019-04-25 00:55:41 | martin.panter | set | messageid: <1556153741.93.0.115387342737.issue22742@roundup.psfhosted.org> |
2019-04-25 00:55:41 | martin.panter | link | issue22742 messages |
2019-04-25 00:55:41 | martin.panter | create | |
|