diff options
author | Ronan Lamy <ronan.lamy@gmail.com> | 2017-09-13 11:56:04 +0100 |
---|---|---|
committer | Ronan Lamy <ronan.lamy@gmail.com> | 2017-09-13 11:56:04 +0100 |
commit | f4fe3c42347f4b7f53a4474f728b15d0cd75885e (patch) | |
tree | b14c0c0bf4b4b8ae0145f43b62559aa124f023d7 /Cython/Compiler/ModuleNode.py | |
parent | 1546cd7b15cacafdbb5142f3bc2776d80240e4f7 (diff) | |
download | cython-f4fe3c42347f4b7f53a4474f728b15d0cd75885e.tar.gz |
Add flag CYTHON_USE_TP_FINALIZEto control whether tp_finalize is used.
Disable it on pypy3, since it doesn't support PEP 442 yet.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 353dc6c9f..dc25c8bd9 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1408,7 +1408,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): if not is_final_type: # in Py3.4+, call tp_finalize() as early as possible - code.putln("#if PY_VERSION_HEX >= 0x030400a1") + code.putln("#if CYTHON_USE_TP_FINALIZE") if needs_gc: finalised_check = '!_PyGC_FINALIZED(o)' else: |