Matthew Barnett <pyt...@mrabarnett.plus.com> added the comment:

The case:

    '  a b c  '.split(maxsplit=1) == ['a', 'b c  ']

suggests that empty strings don't count towards maxsplit, otherwise it would 
return [' a b c  '] (i.e. the split would give ['', ' a b c  '] and dropping 
the empty strings would give [' a b c  ']).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue28937>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to