Ammar Askar <[email protected]> added the comment:
As reported by Will McGugan on twitter:
Printing may be wrong for some unicode characters like:
Traceback (most recent call last):
File "test.py", line 1, in <module>
x = ("该" / 0) + (1 / 2)
~~~~~~^
TypeError: unsupported operand type(s) for /: 'str' and 'int'
and
Traceback (most recent call last):
File "test.py", line 3, in <module>
x = ("💩" / 0) + (1 / 2)
~~~~~~~
TypeError: unsupported operand type(s) for /: 'str' and 'int'
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43950>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com