How to determine which method was used in an inheritance heirarchy?
Erik Jones
erik at myemma.com
Mon Jul 16 01:18:35 EDT 2007
On Jul 15, 2007, at 11:23 PM, Michele Simionato wrote:
> On Jul 16, 5:51 am, Erik Jones <e... at myemma.com> wrote:
>> Say you're given a call event frame for a method call. How can you
>> tell if the code being executed came from a super class of the object
>> or class the method was called on?
>>
>> Erik Jones
>
> You look if the method was defined in self.__class__.__dict__.
>
> Michele Simionato
That doesn't seem to cover calling super class __init__ methods.
Erik Jones
Software Developer | Emma®
erik at myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com
More information about the Python-list
mailing list