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 treeif 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 writtenyet. The slot_tp_getattro stuff Stefan mentioned is useful though.__getattr(ibute)__ support is now working with subclasses. The semanticsshould match Python exactly if my test cases are correct. All that haschanged from the previous patch is that at compile time base classes arechecked 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
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
