diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2016-07-31 21:48:16 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-07-31 21:48:16 +0200 |
commit | 1695e3889159537e0677528b52210b7575a2a95a (patch) | |
tree | 8d3afc6f56e8b5bdfb55f261129839a6171b850d /Cython/Compiler/ParseTreeTransforms.py | |
parent | ffa9234c32a07e6578d59be86d9349f10cc46d1a (diff) | |
download | cython-fixed_code_objects.tar.gz |
correctly tie one PyCodeObject instance to one function to allow for proper tracing and profilingfixed_code_objects
Diffstat (limited to 'Cython/Compiler/ParseTreeTransforms.py')
-rw-r--r-- | Cython/Compiler/ParseTreeTransforms.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 71c228df0..86eecc9e1 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -1715,12 +1715,10 @@ if VALUE is not None: if genv.is_closure_scope: rhs = node.py_cfunc_node = ExprNodes.InnerFunctionNode( node.pos, def_node=node, - pymethdef_cname=node.entry.pymethdef_cname, - code_object=ExprNodes.CodeObjectNode(node)) + pymethdef_cname=node.entry.pymethdef_cname) else: binding = self.current_directives.get('binding') rhs = ExprNodes.PyCFunctionNode.from_defnode(node, binding) - node.code_object = rhs.code_object if env.is_py_class_scope: rhs.binding = True |