On Wed, Aug 18, 2010 at 9:52 AM, Robert Bradshaw <[email protected]> wrote: > On Wed, Aug 18, 2010 at 9:50 AM, Lisandro Dalcin <[email protected]> wrote: >> On 18 August 2010 12:53, Carl Witty <[email protected]> wrote: >>> >>> Although I'm actually in favor of just leaving the post-#561 status, >>> where __getattr__ remains unavailable to Python, using the "cdef >>> classes are different" rationale. >>> >> >> What about cheating and generating special code in Cython's >> __getattribute__ to special case the "__getattr__" attribute and >> return something useful? > > I'm not following you here. We currently create a __getattribute__ > using the __getattr__ method, this is just a question of exposing the > unbound method to Python space.
Oh, I think I see what you mean now. Given that it uses _PyType_Lookup we might be able to get away with this. (Of course that would be trickier work for the unbound method than the bound one, changing the __getattr__ of the type object.) - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
