parameters: (iterator, encoding, errors='strict', **kwargs)
docstring: Encoding iterator.
  
      Encodes the input strings from the iterator using a IncrementalEncoder.
  
      errors and kwargs are passed through to the IncrementalEncoder
      constructor.
docstring_summary: Encoding iterator.
docstring_tokens: Encoding iterator .
function: def iterencode(iterator, encoding, errors='strict', **kwargs):
      """
      Encoding iterator.
  
      Encodes the input strings from the iterator using a IncrementalEncoder.
  
      errors and kwargs are passed through to the IncrementalEncoder
      constructor.
      """
      encoder = getincrementalencoder(encoding)(errors, **kwargs)
      for input in iterator:
          output = encoder.encode(input)
          if output:
              yield output
      output = encoder.encode("", True)
      if output:
          yield output
function_tokens: def iterencode ( iterator , encoding , errors = 'strict' , * * kwargs ) : encoder = getincrementalencoder ( encoding ) ( errors , * * kwargs ) for input in iterator : output = encoder . encode ( input ) if output : yield output output = encoder . encode ( "" , True ) if output : yield output