parameters: (a, *p)
return_statement: return path
docstring: Join two or more pathname components, inserting sep as needed
docstring_summary: Join two or more pathname components, inserting sep as needed
docstring_tokens: Join two or more pathname components inserting sep as needed
function: def join(a, *p):
      """Join two or more pathname components, inserting sep as needed"""
      path = a
      for b in p:
          if isabs(b):
              path = b
          elif path == '' or path[-1:] in '/\\:':
              path = path + b
          else:
              path = path + '/' + b
      return path
function_tokens: def join ( a , * p ) : path = a for b in p : if isabs ( b ) : path = b elif path == '' or path [ - 1 : ] in '/\\:' : path = path + b else : path = path + '/' + b return path