From: Stefan Behnel Date: Sat, 15 Sep 2007 11:44:57 +0000 (+0200) Subject: removed getattr() optimisation as it disables the usage of a default value X-Git-Tag: 0.9.6.14~29^2~129^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7b8adf65ec9f5e9076aac19fc2a26f829bd98240;p=cython.git removed getattr() optimisation as it disables the usage of a default value --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index b7024e7f..3f2286d1 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -514,7 +514,6 @@ 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_int_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],