-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Code GenerationParsingPython3 Semantics[outdated] Python Semantics that differ specifically from Python 2.x[outdated] Python Semantics that differ specifically from Python 2.xfeature
Milestone
Description
I want to cythonize this Python 3 code:
def say_hello_to_λ(name):
print("Hello λ %s!" % name)
which fails:
cythoning src/main/cython/hellocython.pyx to src/main/cython/hellocython.cpp
Error compiling Cython file:
------------------------------------------------------------
...
def say_hello_to_λ(name):
^
------------------------------------------------------------
src/main/cython/hellocython.pyx:1:17: Unrecognized character
building 'cignificance' extension
clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c++11 -I/usr/local/miniconda3/envs/spiht/include/python3.6m -c src/main/cython/cignificance.cpp -o build/temp.macosx-10.7-x86_64-3.6/src/main/cython/cignificance.o -std=c++11 -fextended-identifiers
src/main/cython/cignificance.cpp:1:2: error: Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
1 error generated.
error: command 'clang' failed with exit status 1
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.
Metadata
Metadata
Assignees
Labels
Code GenerationParsingPython3 Semantics[outdated] Python Semantics that differ specifically from Python 2.x[outdated] Python Semantics that differ specifically from Python 2.xfeature