parameters: (string, slice_length)
docstring: Iterate over slices of a string.
docstring_summary: Iterate over slices of a string.
docstring_tokens: Iterate over slices of a string .
function: def iter_slices(string, slice_length):
      """Iterate over slices of a string."""
      pos = 0
      while pos < len(string):
          yield string[pos:pos + slice_length]
          pos += slice_length
function_tokens: def iter_slices ( string , slice_length ) : pos = 0 while pos < len ( string ) : yield string [ pos : pos + slice_length ] pos += slice_length