diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-08-10 18:34:03 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-08-10 18:34:03 +0200 |
commit | 22eef3dc82325d1b5e12e63df123ed2f3a0f12c8 (patch) | |
tree | f08c1c8502d772892bca5c2ea56452afb99aa06b /Cython/Utility/ModuleSetupCode.c | |
parent | 8ebe27274eb129cc7d33431a828ed690d38bce91 (diff) | |
download | cython-22eef3dc82325d1b5e12e63df123ed2f3a0f12c8.tar.gz |
Enable PEP-489 multi-phase module initialisation, now that re-imports are handled with an error.
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index ac6264574..55c379904 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -178,9 +178,7 @@ #define CYTHON_FAST_PYCALL 1 #endif #ifndef CYTHON_PEP489_MULTI_PHASE_INIT - // Disabled for now. Most extension modules simply can't deal with it, and Cython isn't ready either. - // See issues listed here: https://docs.python.org/3/c-api/init.html#sub-interpreter-support - #define CYTHON_PEP489_MULTI_PHASE_INIT (0 && PY_VERSION_HEX >= 0x03050000) + #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000) #endif #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1) |