code: def split(patterns, flags):
      
  
      if flags & SPLIT:
          splitted = []
          for pattern in ([patterns] if isinstance(patterns, (str, bytes)) else patterns):
              splitted.extend(WcSplit(pattern, flags).split())
          return splitted
      else:
          return patterns
docs: Split patterns.