-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix typo str.rsplit
#11770
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
Fix typo str.rsplit
#11770
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to LocalStack! Thanks for raising your first Pull Request and landing in your contributions. Our team will reach out with any reviews or feedbacks that we have shortly. We recommend joining our Slack Community and share your PR on the #community channel to share your contributions with us. Please make sure you are following our contributing guidelines and our Code of Conduct.
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for raising the PR @sbrugman 🙌 I would really appreciate if you could read the CLA Document, it should be a quick read 😁 After that, perhaps you could update the signature comment above.🙂
recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this 🙌 I would really appreciate if you could also add a small test case around it to verify the results 🙂
Feel free to add it. I've enabled "Allow edits by maintainers" |
@sbrugman Since this change without a proper test doesn't really give us confidence that it is correct and necessary, I'll close this PR for now. Feel free to reopen it again in case there's a need for it. |
Motivation
Minor bug:
maxsplit
instr.split
with negative numbers defaults tomaxsplit=0
, which is the default.The author probably intended
maxsplit=2
as only the last two elements are required.Changes