quick fix for __getattr__ until we have a better solution
authorStefan Behnel <scoder@users.berlios.de>
Sun, 15 Aug 2010 13:29:55 +0000 (15:29 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 15 Aug 2010 13:29:55 +0000 (15:29 +0200)
Cython/Compiler/Code.py

index 893b969d488f8da586b162ecbba90e9f7c544daa..1066e9fe4a4bc1d223428c2f62006c1ab226b6ea 100644 (file)
@@ -1232,7 +1232,7 @@ class CCodeWriter(object):
 
     def put_pymethoddef(self, entry, term, allow_skip=True):
         if entry.is_special or entry.name == '__getattribute__':
-            if entry.name not in ['__cinit__', '__dealloc__', '__richcmp__', '__next__', '__getreadbuffer__', '__getwritebuffer__', '__getsegcount__', '__getcharbuffer__', '__getbuffer__', '__releasebuffer__']:
+            if entry.name not in ['__cinit__', '__dealloc__', '__richcmp__', '__next__', '__getreadbuffer__', '__getwritebuffer__', '__getsegcount__', '__getcharbuffer__', '__getbuffer__', '__releasebuffer__', '__getattr__']:
                 # Python's typeobject.c will automatically fill in our slot
                 # in add_operators() (called by PyType_Ready) with a value
                 # that's better than ours.