Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'str' object has no attribute 'rsplit' #785

Open
acbart opened this issue Jun 20, 2018 · 1 comment
Open

'str' object has no attribute 'rsplit' #785

acbart opened this issue Jun 20, 2018 · 1 comment

Comments

@acbart
Copy link
Contributor

acbart commented Jun 20, 2018

I believe this was just a minor oversight, but there's no "rsplit" in the string class (Unless I missed something obvious).

https://docs.python.org/2/library/string.html#string.rsplit

@j-f1
Copy link
Contributor

j-f1 commented Jun 20, 2018

This could probably be implemented by splitting the string all the way, then joining together the first Math.min(arr.length - maxsplit, 0) elements of the array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants