Thanks! It works great for me.

On May 4, 2008, at 8:37 PM, Peter Todd wrote:
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] <getattr_support.hg>_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Attachment: PGP.sig
Description: This is a digitally signed message part

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

Reply via email to