This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: U+1F441 EYE Missing in unicodedata
Type: behavior Stage: resolved
Components: Unicode Versions: Python 3.4
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Mark Shoulson, ezio.melotti, ned.deily, vstinner
Priority: normal Keywords:

Created on 2016-10-13 19:47 by Mark Shoulson, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg278594 - (view) Author: Mark Shoulson (Mark Shoulson) Date: 2016-10-13 19:47
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
>>>
msg278595 - (view) Author: Mark Shoulson (Mark Shoulson) Date: 2016-10-13 19:50
Sorry, NOSE is U+1F443; I should have used EAR which is U+1F442.  The result is the same.
msg278596 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2016-10-13 19:56
The EYE code point was added in Unicode 7.0 which was first supported in Python 3.5.0.
History
Date User Action Args
2022-04-11 14:58:38adminsetgithub: 72620
2016-10-13 19:56:22ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg278596

resolution: out of date
stage: resolved
2016-10-13 19:50:15Mark Shoulsonsetmessages: + msg278595
2016-10-13 19:47:14Mark Shoulsoncreate