diff options
author | Stefan Behnel <scoder@users.berlios.de> | 2008-10-25 13:01:31 +0200 |
---|---|---|
committer | Stefan Behnel <scoder@users.berlios.de> | 2008-10-25 13:01:31 +0200 |
commit | 4148f516ef5f30884fc15f44e2014ccbb69d1b58 (patch) | |
tree | be092ae21fc419f46d0bbf615e9f8dbf086e4c69 /Cython/Compiler/ModuleNode.py | |
parent | 344e435ffea13bb6b6e68b75b688880e2efbdd1e (diff) | |
download | cython-4148f516ef5f30884fc15f44e2014ccbb69d1b58.tar.gz |
replacement implementation for set/frozenset in Py3, mainly by Lisandro
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index c36cc3be5..f094fab11 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1567,6 +1567,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln("/*--- Initialize various global constants etc. ---*/") code.putln(code.error_goto_if_neg("__Pyx_InitGlobals()", self.pos)) + code.putln("#if PY_VERSION_HEX < 0x02040000") + code.putln(code.error_goto_if_neg("__Pyx_Py23SetsImport()", self.pos)) + code.putln("#endif") + code.putln("/*--- Module creation code ---*/") self.generate_module_creation_code(env, code) @@ -1574,7 +1578,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln("/*--- Builtin init code ---*/") code.putln(code.error_goto_if_neg("__Pyx_InitCachedBuiltins()", self.pos)) - + code.putln("%s = 0;" % Naming.skip_dispatch_cname); code.putln("/*--- Global init code ---*/") |