src/pylib/pybytes/split/split

Source   Edit  

Procs

proc split(a: PyBytes; sep = None; maxsplit = -1): PyList[PyBytes] {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
proc split(a: PyBytes; sep: PyBytes | char; maxsplit = -1): PyList[PyBytes]
Source   Edit  
proc splitlines(self: PyBytes; keepends = false): PyList[PyBytes] {....raises: [],
    tags: [], forbids: [].}
Source   Edit  

Iterators

iterator split(a: PyBytes; sep = None; maxsplit = -1): PyBytes {....raises: [],
    tags: [], forbids: [].}

with ASCII whitespaces as sep.

treat runs of whitespaces as one sep (i.e. discard empty strings from result), while Nim's unicode.split(s) doesn't

Source   Edit  
iterator split(a: PyBytes; sep: PyBytes | char; maxsplit = -1): PyBytes {.inline.}
Source   Edit