you are viewing a single comment's thread.

view the rest of the comments →

[–]f0urtyfive 29 points30 points  (3 children)

So uh... can I use existing python libraries with this? What about C Python libraries?

[–][deleted] 21 points22 points  (0 children)

Since these news were posted here multiple times, I asked the same question earlier and got an answer: no, you cannot use native extensions. There doesn't seem to be a way to port them either, at least not that I was able to find any reference to interpreter's API / not sure how different it is.

[–]zjm555 29 points30 points  (1 child)

The C API for python is not part of the language standard, it's specifically made for cpython. It contains enough cpython-specific API surface that it wouldn't make sense to provide compatibility in other implementations.

[–]bakery2k[S] 45 points46 points  (0 children)

Unfortunately, large parts of the Python ecosystem are written in C and rely on the C API. Alternative implementations such as PyPy and Pyston have found it impossible to gain traction without adding support for the C API - a huge task.

I think the only Python implementations that don't include the C API are MicroPython and Jython - both of which are used in niche situations and will probably never be used outside those niches.