kiriloff
kiriloff

Reputation: 26333

Cythonize a .pyc no .pyx available

In my hands i have a .pyc and not the corresponding .py or .pyx.

Upvotes: 1

Views: 783

Answers (1)

Nafiul Islam
Nafiul Islam

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

Related Questions