parameters: (self, s, tlist, p=0)
return_statement: return token, tpos
docstring: Finds the next token from the 'tlist' in the input 's', starting from position 'p'.
          Returns the first occured token and its position, or ("", len(s)) when no token is found
docstring_summary: Finds the next token from the 'tlist' in the input 's', starting from position 'p'.
          Returns the first occured token and its position, or ("", len(s)) when no token is found
docstring_tokens: Finds the next token from the tlist in the input s starting from position p . Returns the first occured token and its position or ( len ( s )) when no token is found
function: def find_next_token(self, s, tlist, p=0):
          """
          Finds the next token from the 'tlist' in the input 's', starting from position 'p'.
          Returns the first occured token and its position, or ("", len(s)) when no token is found
          """
          token = ""
          tpos = len(s)
          for t in tlist:
              pos = s.find(t, p)
              if pos < 0:
                  continue
              if pos < tpos:
                  tpos = pos
                  token = t
          return token, tpos
function_tokens: def find_next_token ( self , s , tlist , p = 0 ) : token = "" tpos = len ( s ) for t in tlist : pos = s . find ( t , p ) if pos < 0 : continue if pos < tpos : tpos = pos token = t return token , tpos