google/skylark

library: implement `string.rsplit(None, d)` where `d > 0`

Closed this issue · 2 comments

$ python
>>> "a b c d e".rsplit(None, 2)
['a b c', 'd', 'e']
$ skylark
Traceback (most recent call last):
  <stdin>:1:15: in <toplevel>
Error: rsplit(None, 2): maxsplit > 0 not yet supported

Can I take a shot at this?

Please do! It's a little fiddly, which is why I left it as a TODO.