[New-bugs-announce] [issue22383] Crazy unicode : How g and ɡ look the same but are two different characters
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
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).
nosy: Christian.Kleineidam, ezio.melotti, haypo
title: Crazy unicode : How g and ɡ look the same but are two different characters
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce