Reputation: 26333
In my hands i have a .pyc and not the corresponding .py or .pyx.
Is it possible to cythonize a .pyc ?
should it be decompressed to .py first and how ?
Upvotes: 1
Views: 783
Reputation: 82470
Cython is a superset of Python, and hence you can cythonize a .py
file. I say this because .pyc
files can be decompiled to .py
file. There are several libraries that can do this, however, I would suggest that you have a look at this question asked previously.
Although this can be done, there are no real benefits, your python code can at most gain a 20% speed boost.
Upvotes: 3