From 511d09f0c3e051bb18a6a53b5a2d1b675054ded9 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 15 Sep 2007 12:43:21 +0200 Subject: [PATCH] [has|get|set]attr() optimisation (fix for setattr) --- Cython/Compiler/Symtab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 18720d10..beb4c435 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -515,7 +515,7 @@ class BuiltinScope(Scope): builtin_functions = { "hasattr": ["PyObject_HasAttr", c_bint_type, (py_object_type, py_object_type)], "getattr": ["PyObject_GetAttr", py_object_type, (py_object_type, py_object_type)], - "setattr": ["PyObject_SetAttr", c_bint_type, (py_object_type, py_object_type), -1], + "setattr": ["PyObject_SetAttr", c_bint_type, (py_object_type, py_object_type, py_object_type), -1], "cmp": ["PyObject_Compare", c_int_type, (py_object_type, py_object_type), None, True], "repr": ["PyObject_Repr", py_object_type, (py_object_type, ), 0], # "str": ["PyObject_Str", py_object_type, (py_object_type, ), 0], -- 2.26.2