parameters: (sequence, isinstance=isinstance, StringTypes=StringTypes,
                       SequenceTypes=SequenceTypes, do_flatten=do_flatten)
return_statement: return result
docstring: Flatten a sequence to a non-nested list.
  
      Same as flatten(), but it does not handle the single scalar
      case. This is slightly more efficient when one knows that
      the sequence to flatten can not be a scalar.
docstring_summary: Flatten a sequence to a non-nested list.
docstring_tokens: Flatten a sequence to a non - nested list .
function: def flatten_sequence(sequence, isinstance=isinstance, StringTypes=StringTypes,
                       SequenceTypes=SequenceTypes, do_flatten=do_flatten):
      """Flatten a sequence to a non-nested list.
  
      Same as flatten(), but it does not handle the single scalar
      case. This is slightly more efficient when one knows that
      the sequence to flatten can not be a scalar.
      """
      result = []
      for item in sequence:
          if isinstance(item, StringTypes) or not isinstance(item, SequenceTypes):
              result.append(item)
          else:
              do_flatten(item, result)
      return result
function_tokens: def flatten_sequence ( sequence , isinstance = isinstance , StringTypes = StringTypes , SequenceTypes = SequenceTypes , do_flatten = do_flatten ) : result = [ ] for item in sequence : if isinstance ( item , StringTypes ) or not isinstance ( item , SequenceTypes ) : result . append ( item ) else : do_flatten ( item , result ) return result