summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-08-10 18:34:03 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-08-10 18:34:03 +0200
commit22eef3dc82325d1b5e12e63df123ed2f3a0f12c8 (patch)
treef08c1c8502d772892bca5c2ea56452afb99aa06b /Cython/Utility/ModuleSetupCode.c
parent8ebe27274eb129cc7d33431a828ed690d38bce91 (diff)
downloadcython-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.c4
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)