(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.startswith('start_') or methodName.startswith('end_') \
               or methodName.startswith('do_'):
            return SGMLParser.__getattr__(self, methodName)
        elif not methodName.startswith('__'):
            return Tag.__getattr__(self, methodName)
        else:
            raise AttributeError
def __getattr__ ( self , methodName ) : #print "__getattr__ called on %s.%s" % (self.__class__, methodName) if methodName . startswith ( 'start_' ) or methodName . startswith ( 'end_' ) or methodName . startswith ( 'do_' ) : return SGMLParser . __getattr__ ( self , methodName ) elif not methodName . startswith ( '__' ) : return Tag . __getattr__ ( self , methodName ) else : raise AttributeError