parameters: (self, instring, maxsplit=_MAX_INT, includeSeparators=False)
docstring: Generator method to split a string using the given expression as a separator.
          May be called with optional C{maxsplit} argument, to limit the number of splits;
          and the optional C{includeSeparators} argument (default=C{False}), if the separating
          matching text should be included in the split results.
          
          Example::        
              punc = oneOf(list(".,;:/-!?"))
              print(list(punc.split("This, this?, this sentence, is badly punctuated!")))
          prints::
              ['This', ' this', '', ' this sentence', ' is badly punctuated', '']
docstring_summary: Generator method to split a string using the given expression as a separator.
          May be called with optional C{maxsplit} argument, to limit the number of splits;
          and the optional C{includeSeparators} argument (default=C{False}), if the separating
          matching text should be included in the split results.
          
          Example::        
              punc = oneOf(list(".,;:/-!?"))
              print(list(punc.split("This, this?, this sentence, is badly punctuated!")))
          prints::
              ['This', ' this', '', ' this sentence', ' is badly punctuated', '']
docstring_tokens: Generator method to split a string using the given expression as a separator . May be called with optional C { maxsplit } argument to limit the number of splits ; and the optional C { includeSeparators } argument ( default = C { False } ) if the separating matching text should be included in the split results . Example :: punc = oneOf ( list ( . ; : / - !? )) print ( list ( punc . split ( This this? this sentence is badly punctuated! ))) prints :: [ This this this sentence is badly punctuated ]
function: def split(self, instring, maxsplit=_MAX_INT, includeSeparators=False):
          """
          Generator method to split a string using the given expression as a separator.
          May be called with optional C{maxsplit} argument, to limit the number of splits;
          and the optional C{includeSeparators} argument (default=C{False}), if the separating
          matching text should be included in the split results.
          
          Example::        
              punc = oneOf(list(".,;:/-!?"))
              print(list(punc.split("This, this?, this sentence, is badly punctuated!")))
          prints::
              ['This', ' this', '', ' this sentence', ' is badly punctuated', '']
          """
          splits = 0
          last = 0
          for t,s,e in self.scanString(instring, maxMatches=maxsplit):
              yield instring[last:s]
              if includeSeparators:
                  yield t[0]
              last = e
          yield instring[last:]
function_tokens: def split ( self , instring , maxsplit = _MAX_INT , includeSeparators = False ) : splits = 0 last = 0 for t , s , e in self . scanString ( instring , maxMatches = maxsplit ) : yield instring [ last : s ] if includeSeparators : yield t [ 0 ] last = e yield instring [ last : ]