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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22383>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to