__builtin__.bytearray.split

bytearray.split([sep[, maxsplit]]) → list of bytearray

Return a list of the sections in B, using sep as the delimiter. If sep is not given, B is split on ASCII whitespace characters (space, tab, return, newline, formfeed, vertical tab). If maxsplit is given, at most maxsplit splits are done.