New-style classes and special methods

Andrew Bennetts andrew-pythonlist at puzzling.org
Mon Feb 24 07:51:13 CET 2003


On Mon, Feb 24, 2003 at 01:23:24AM -0500, Jp Calderone wrote:
> 
>   Is this analysis of the behavior correct?  If so, what are the chances of
> this being "fixed"?

I believe you are correct -- new-style classes only check their class, not
instances, for the __magic_methods__.

-Andrew.






More information about the Python-list mailing list