From: Stefan Behnel Date: Sun, 15 Aug 2010 13:29:55 +0000 (+0200) Subject: quick fix for __getattr__ until we have a better solution X-Git-Tag: 0.13~13^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3e797fe424f85170fd682ccb65fea2ac87fa5767;p=cython.git quick fix for __getattr__ until we have a better solution --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 893b969d..1066e9fe 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -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.