You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python always applies NFKC
normalization to characters. Therefore, two distinct characters may actually
produce the same variable name. For example:
>>>ª=1# FEMININE ORDINAL INDICATOR>>>a# LATIN SMALL LETTER A (i.e., ASCII lowercase 'a')1
I've generated a mapping of these characters taken from this url.
The mapping can be found here. But beware that some characters may not be supported in python because I haven't tested every one of them.
I suggest adding another additional flag to enable this behaviour
I would have done it myself and opened a pr but I am too busy at the moment
The text was updated successfully, but these errors were encountered:
I actually implemented this in uglier, which was pretty much a copy of this project. In addition to abusing the Unicode normalization, it also uses cyrillic characters (which look a lot like latin chars) to make all variables look like they have the same identifier.
Basically the suggesion in this reddit comment
From this article:
I've generated a mapping of these characters taken from this url.
The mapping can be found here. But beware that some characters may not be supported in python because I haven't tested every one of them.
I suggest adding another additional flag to enable this behaviour
I would have done it myself and opened a pr but I am too busy at the moment
The text was updated successfully, but these errors were encountered: