[New-bugs-announce] [issue22383] Crazy unicode : How g and ɡ look the same but are two different characters

Christian Kleineidam report at bugs.python.org
Wed Sep 10 21:05:03 CEST 2014


New submission from Christian Kleineidam:

g = 2
i = 2
ɡ = 1
a = g + i
a
>>> 4

Given the font on which this bug tracker runs it's possible to see why a is 4 and not 3. On the other hand there are plenty of fonts (such as Arial, Tahoma or Courier New) that display chr(103) and chr(609) the same way. If a programmer is not aware of the issue it will make it nearly impossible to spot bugs that come up when someone names variables or functions via using chr(609). 

Python should either forbid people from using chr(609) to name functions and variables or treat it as a synonym of chr(103).

----------
components: Unicode
messages: 226708
nosy: Christian.Kleineidam, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: Crazy unicode : How g and ɡ look the same but are two different characters
type: behavior
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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


More information about the New-bugs-announce mailing list