On Sun, May 04, 2008 at 01:15:32AM -0400, Peter Todd wrote:
> Here's my first patch. This correctly implements __getattribute__ and
> __getattr__ in the single class case. FWIW I also have a mercurial tree
> if it'd be better to pull from it than apply patches.
> 
> I'm working on making subclasses behave correctly, I've got test cases
> written up showing where things fail, but no solutions to that written
> yet. The slot_tp_getattro stuff Stefan mentioned is useful though.

__getattr(ibute)__ support is now working with subclasses. The semantics
should match Python exactly if my test cases are correct. All that has
changed from the previous patch is that at compile time base classes are
checked for __getattr(ibute)__ methods and those methods are used if
found.

Attached is an hg bundle of the two commits.

-- 
http://petertodd.org 'peter'[:[EMAIL PROTECTED] 

Attachment: getattr_support.hg
Description: Binary data

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to