parameters: (self, S)
docstring: split(set) -> [sets]
  
          Partition a set into one or two pieces.
docstring_summary: split(set) -> [sets]
docstring_tokens: split ( set ) - > [ sets ]
function: def split(self, S):
          """split(set) -> [sets]
  
          Partition a set into one or two pieces.
          """
  
          # There are many ways to split, we could do a better job with more
          # context information (but then the API becomes grosser).
          L = list(S)
          mid = len(L)//2
          if mid==0:
              return L,
          else:
              return L[:mid],L[mid:]
function_tokens: def split ( self , S ) : # There are many ways to split, we could do a better job with more # context information (but then the API becomes grosser). L = list ( S ) mid = len ( L ) // 2 if mid == 0 : return L , else : return L [ : mid ] , L [ mid : ]