[issue22742] IDLE shows traceback when printing non-BMP character
Terry J. Reedy
report at bugs.python.org
Sat Nov 1 01:36:20 CET 2014
Terry J. Reedy added the comment:
I think Idle should consistently display astral chars with their \U escape. It sometimes does, just not always.
>>> s='\U0001f680'
>>> s
'\U0001f680'
>>> str(s)
'\U0001f680'
>>> repr(s)
"'\U0001f680'"
>>> print(s) # gives error above.
>>> print(str(s)) #ditto
I thought that implicit print of expression and overt print of the same expression were supposed to be the same.
#21084 is also about this general issue.
----------
nosy: +terry.reedy
stage: -> needs patch
versions: +Python 2.7, Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22742>
_______________________________________
More information about the Python-bugs-list
mailing list