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