[New-bugs-announce] [issue28434] U+1F441 EYE Missing in unicodedata

Mark Shoulson report at bugs.python.org
Thu Oct 13 15:47:14 EDT 2016


New submission from Mark Shoulson:

Python3.4 does not appear to know about the Unicode character U+1F441 EYE, although it does know about nearby characters which were added to Unicode at the same time:

>>> "\N{EYES}"   # This is character U+1F440
'👀'
>>> "\N{NOSE}"   # This is U+1F442
'👃'
>>> "\N{EYE}"
  File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-6: unknown Unicode character name
>>> import unicodedata
>>> unicodedata.lookup("EYES")
'👀'
>>> unicodedata.lookup("EYE")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: "undefined character name 'EYE'"
>>> unicodedata.name('👀')
'EYES'
>>> unicodedata.name('👁')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: no such name
>>>

----------
components: Unicode
messages: 278594
nosy: Mark Shoulson, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: U+1F441 EYE Missing in unicodedata
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28434>
_______________________________________


More information about the New-bugs-announce mailing list