Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support Unicode identifiers #2601
I want to cythonize this Python 3 code:
I am not the only one with a desire to use unicode in my identifiers:
And apparently certain Unicode characters are permitted in identifiers according to this https://stackoverflow.com/a/12693346/969122 since C11.
So I don't see a reason cython should not allow these characters.
Enough of PEP-489 should now be supported in the latest master to consider this a realistic feature. PR welcome.
Note that it's worth not requiring C11. The C code that Cython generates usually satisfies itself with C89. Punycode can be used to encode Unicode identifier names to ASCII identifiers.