removed getattr() optimisation as it disables the usage of a default value
authorStefan Behnel <scoder@users.berlios.de>
Sat, 15 Sep 2007 11:44:57 +0000 (13:44 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 15 Sep 2007 11:44:57 +0000 (13:44 +0200)
Cython/Compiler/Symtab.py

index b7024e7fb4a64573012b2b15f6ed866d0182267a..3f2286d11e90b74cf77fd66abeae1db8fb6f11ba 100644 (file)
@@ -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],