Steven D'Aprano added the comment:
This does seem to be a normalisation issue:
py> unicodedata.normalize('NFKC', 'ϵαγϕ') == ''.join(func.__code__.co_varnames)
True
so I'm closing this as not a bug.
Mike, thank you for copying and pasting the relevant text into the
Mat Leonard added the comment:
Ah great, then I just need to do something
like unicodedata.normalize('NFKC', 'Ω'). Thanks!
On Sun, May 20, 2018 at 2:59 PM Eric V. Smith
wrote:
>
> Eric V. Smith added the comment:
>
> I think
Eric V. Smith added the comment:
I think you're seeing identifier normalization. See this SO question for a
description of the issue:
https://stackoverflow.com/questions/34097193/identifier-normalization-why-is-the-micro-sign-converted-into-the-greek-letter
--
New submission from Mat Leonard :
Unicode symbols used as function arguments aren't preserved in the variable
names available from .__code__.co_varnames. Example shown below.
def func(ϵ, α, γ, ϕ):
pass
varnames = func.__code__.co_varnames
print(varnames)
print('ϵ'