parameters: (self, *args)
docstring: Insert an argument to the map. The argument can be:
          
          A String, 
              Either of the form "[+-]//lhs/... //rhs/..." or "[+-]//lhs/..." 
              for label style maps.
          A List:
              This is a list of strings of one of the single string formats 
              described above.
          A pair of Strings:
              P4.Map.insert(lhs, rhs)
docstring_summary: Insert an argument to the map. The argument can be:
          
          A String, 
              Either of the form "[+-]//lhs/... //rhs/..." or "[+-]//lhs/..." 
              for label style maps.
          A List:
              This is a list of strings of one of the single string formats 
              described above.
          A pair of Strings:
              P4.Map.insert(lhs, rhs)
docstring_tokens: Insert an argument to the map . The argument can be : A String Either of the form [ + - ] // lhs / ... // rhs / ... or [ + - ] // lhs / ... for label style maps . A List : This is a list of strings of one of the single string formats described above . A pair of Strings : P4 . Map . insert ( lhs rhs )
function: def insert(self, *args):
          """Insert an argument to the map. The argument can be:
          
          A String, 
              Either of the form "[+-]//lhs/... //rhs/..." or "[+-]//lhs/..." 
              for label style maps.
          A List:
              This is a list of strings of one of the single string formats 
              described above.
          A pair of Strings:
              P4.Map.insert(lhs, rhs)
          """
          
          if len(args) == 1 :
              arg = args[0]
              if isinstance( arg, str ):
                  P4API.P4Map.insert( self, arg )
              elif isinstance( arg, list ):
                  for s in arg:
                      P4API.P4Map.insert( self, s )
                      
          else: # expecting 2 args in this case: left, right 
              left = args[0].strip()
              right = args[1].strip()
              P4API.P4Map.insert(self, left, right )
function_tokens: def insert ( self , * args ) : if len ( args ) == 1 : arg = args [ 0 ] if isinstance ( arg , str ) : P4API . P4Map . insert ( self , arg ) elif isinstance ( arg , list ) : for s in arg : P4API . P4Map . insert ( self , s ) else : # expecting 2 args in this case: left, right  left = args [ 0 ] . strip ( ) right = args [ 1 ] . strip ( ) P4API . P4Map . insert ( self , left , right )