Conversation
c7cb599 to
08bed00
Compare
|
Thanks. However, rather than making the Also, we do not define our own officlal looking C-API functions in Cython. Instead, we use our own internal functions prefixed with |
|
Thanks for your feed back. But would you mind to clarify your first paragraph please? |
|
Sure. Sorry for not being clear. What I meant was that many usages of "COMPILING_IN_CPYTHON" might better be spelled as "COMPILING_IN_PYPY else ...". In fact, PYPY has even improved their C-API implementation a lot during the last year, so some of the special casing could even be removed at some point. If Pyston can handle the normal CPython path, it's best to change the "CPYTHON" check to a "PYPY" check, i.e. swap the default behaviour to CPYTHON and special case PYPY instead, rather than special casing CPYTHON and PYSTON and whatever else might come up in the future. To be even more clear: I encourage you to be more ambitious in your change and also clean up the current macro usage. |
|
I replaced most of the macro usages by more feature-specific macros. Please take a look and see if that helps in what you're doing. 71de578 |
|
I also added macro indirections for your C-API functions here: 9a3f96e |
|
Thanks! I will take a look. |
2ed68b6 to
ee9f1e7
Compare
|
Hi @scoder . Thanks for your patches. |
Pyston is another Python implementation. More like CPython + JIT. Patch Cython to add Pyston support.
ee9f1e7 to
9a02e1c
Compare
|
Hi @scoder I updated the commit again. Would you mind to review this commit if you have time, please? Pyston will try to support more CPython extensions. So more Pyston change will come. |
|
Looks good. Thanks! |
|
Thanks for your help! |
As of 2016-Sep-28 pycapicompat.h is no longer active because all relevant bits went into Cython codebase directly: cython/cython#528
Hi All,
The changes in this PR originally from try to run extensions which needs Cython(NumPY, SciPy, lxml) in Pyston.
During the process of try to support more extensions in Pyston. There may have more Pyston changes in Cython.
Thoughts?