src/pylib/pybytes/split/rsplit

Source   Edit  

Procs

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

Iterators

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

with unicode whitespaces as sep.

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

Source   Edit