Re: [Pyobjc-dev] another odd problem
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-08-11 05:55:15
|
On Sunday, 10 August, 2003, at 23:25, Jack Jansen wrote: > > On zaterdag, aug 9, 2003, at 21:36 Europe/Amsterdam, Ronald Oussoren > wrote: > >> That was easier than I expected. This is fixed in CVS, as a quick >> workaround you can make the mixin-class a new-style class (subclass >> from object). I hadn't accounted for old-style classes when searching >> for attributes. > > Ronald, > is there a test case for Python's funky MRO multiple inheritance > rules? If there isn't then there probably should be one, because fixes > like this are prone to break those rules... Not yet. This actually brings us closer to the normal python semantics of object.__getattribute__. The code for objc_object.__getattribute__ was copied from object.__getattribute__ and then I threw out unnecessary code before adding our own stuff. The unnecessary code turned out out to be necessary after all. Ronald |