(self, token_name)
return getattr(self, token_name)
returns a token
returns a token
returns a token
def get_token(self, token_name):
        """returns a token"""

        if token_name not in TOKEN_NAMES:
            raise TokenException("Invalid token name %s" % token_name)

        return getattr(self, token_name)
def get_token ( self , token_name ) : if token_name not in TOKEN_NAMES : raise TokenException ( "Invalid token name %s" % token_name ) return getattr ( self , token_name )