parameters: (self)
docstring: An iteration generator that allows the loop to modify the
          :class:`PatternSet` during the loop
docstring_summary: An iteration generator that allows the loop to modify the
          :class:`PatternSet` during the loop
docstring_tokens: An iteration generator that allows the loop to modify the : class : PatternSet during the loop
function: def iter(self):
          """An iteration generator that allows the loop to modify the
          :class:`PatternSet` during the loop"""
          if self.patterns:
              patterns = list(self.patterns)
              for pattern in patterns:
                  yield pattern
function_tokens: def iter ( self ) : if self . patterns : patterns = list ( self . patterns ) for pattern in patterns : yield pattern