original_docstring: 
          _search() [private]
          Purpose:    Search for a station by the key given
          Parameters: key [type=str]
                          Which data field to search
                      value [type=str,tuple]
                          What to search for.  If the type is string, it will match the value exactly.  If the type is tuple, it will match all objects between the elements of the tuple.
          Returns:    A dictionary containing the station's location information
          
docstring: _search() [private]
  Purpose:    Search for a station by the key given
  Parameters: key [type=str]
  Which data field to search
  value [type=str,tuple]
  What to search for.  If the type is string, it will match the value exactly.  If the type is tuple, it will match all objects between the elements of the tuple.
  Returns:    A dictionary containing the station's location information
docstring_tokens: _search () [ private ] Purpose : Search for a station by the key given Parameters : key [ type = str ] Which data field to search value [ type = str tuple ] What to search for . If the type is string it will match the value exactly . If the type is tuple it will match all objects between the elements of the tuple . Returns : A dictionary containing the station ' s location information
code: def _search(self, **kwargs):
          """
          _search() [private]
          Purpose:    Search for a station by the key given
          Parameters: key [type=str]
                          Which data field to search
                      value [type=str,tuple]
                          What to search for.  If the type is string, it will match the value exactly.  If the type is tuple, it will match all objects between the elements of the tuple.
          Returns:    A dictionary containing the station's location information
          """
  
          # We want to search for things that have bounds first, then search for individual items
          search_order = [ key for key, val in kwargs.iteritems() if type(val) in [ list, tuple ] ]
          search_order.extend([ key for key, val in kwargs.iteritems() if type(val) not in [ list, tuple ] ])
  
          sub_list = copy(self._stations)
  
          # Create a list of values that go with the key (field) and find the index of the value in the list.
          for key in search_order:
              if type(kwargs[key]) in [ list, tuple ]:
                  sub_list = [ stn for stn in sub_list if stn[key] >= kwargs[key][0] and stn[key] <= kwargs[key][1] ]
              else:
                  sub_list = [ stn for stn in sub_list if stn[key] == kwargs[key] ]
  
          if len(sub_list) == 0:
              return
          elif len(sub_list) == 1:
              return sub_list[0]
          return sub_list
code_tokens: def _search ( self , ** kwargs ) : search_order = [ key for key , val in kwargs . iteritems ( ) if type ( val ) in [ list , tuple ] ] search_order . extend ( [ key for key , val in kwargs . iteritems ( ) if type ( val ) not in [ list , tuple ] ] ) sub_list = copy ( self . _stations ) for key in search_order : if type ( kwargs [ key ] ) in [ list , tuple ] : sub_list = [ stn for stn in sub_list if stn [ key ] >= kwargs [ key ] [ 0 ] and stn [ key ] <= kwargs [ key ] [ 1 ] ] else : sub_list = [ stn for stn in sub_list if stn [ key ] == kwargs [ key ] ] if len ( sub_list ) == 0 : return elif len ( sub_list ) == 1 : return sub_list [ 0 ] return sub_list
short_docstring: _search() [private]
  Purpose:    Search for a station by the key given
  Parameters: key [type=str]
  Which data field to search
  value [type=str,tuple]
  What to search for.
short_docstring_tokens: _search () [ private ] Purpose : Search for a station by the key given Parameters : key [ type = str ] Which data field to search value [ type = str tuple ] What to search for .
comment: """
          _search() [private]
          Purpose:    Search for a station by the key given
          Parameters: key [type=str]
                          Which data field to search
                      value [type=str,tuple]
                          What to search for.  If the type is string, it will match the value exactly.  If the type is tuple, it will match all objects between the elements of the tuple.
          Returns:    A dictionary containing the station's location information
          """$SEP$# We want to search for things that have bounds first, then search for individual items$SEP$# Create a list of values that go with the key (field) and find the index of the value in the list.