From 926ad54de6b8f052257b92060e316730f08de349 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 26 Mar 2009 08:06:17 +0100 Subject: [PATCH] mark the real argument name mangling problem as FIXME, the last fix was more of a work-around --- Cython/Compiler/Nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 0d019501..0de02d97 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1450,6 +1450,8 @@ class CFuncDefNode(FuncDefNode): code.putln('if (%s) {' % Naming.optional_args_cname) for arg in self.args: if arg.default: + # FIXME: simple name prefixing doesn't work when + # argument name mangling is in place code.putln('if (%s->%sn > %s) {' % (Naming.optional_args_cname, Naming.pyrex_prefix, i)) declarator = arg.declarator while not hasattr(declarator, 'name'): -- 2.26.2