(self, methodName)
This method routes method call requests to either the SGMLParser
        superclass or the Tag superclass, depending on the method name.
This method routes method call requests to either the SGMLParser
        superclass or the Tag superclass, depending on the method name.
This method routes method call requests to either the SGMLParser superclass or the Tag superclass depending on the method name .
def __getattr__(self, methodName):
        """This method routes method call requests to either the SGMLParser
        superclass or the Tag superclass, depending on the method name."""
        #print "__getattr__ called on %s.%s" % (self.__class__, methodName)

        if methodName.find('start_') == 0 or methodName.find('end_') == 0 \
               or methodName.find('do_') == 0:
            return SGMLParser.__getattr__(self, methodName)
        elif methodName.find('__') != 0:
            return Tag.__getattr__(self, methodName)
        else:
            raise AttributeError
def __getattr__ ( self , methodName ) : #print "__getattr__ called on %s.%s" % (self.__class__, methodName) if methodName . find ( 'start_' ) == 0 or methodName . find ( 'end_' ) == 0 or methodName . find ( 'do_' ) == 0 : return SGMLParser . __getattr__ ( self , methodName ) elif methodName . find ( '__' ) != 0 : return Tag . __getattr__ ( self , methodName ) else : raise AttributeError