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

Implement str.split() #2445

Merged

Conversation

AkshayWarrier
Copy link
Contributor

@AkshayWarrier AkshayWarrier commented Dec 13, 2023

Relates to #2356.

This PR adds support for str.split() (with or without a separator specified). I have commented out one of the tests because of a bug in _lpython_str_strip mentioned in #2444.

I haven't implemented the maxsplit argument for the method, I can add it if there are no issues with this PR.

Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that looks great! Thank you for implementing this!

I restarted the failed job.

@AkshayWarrier
Copy link
Contributor Author

Thanks!

@certik certik merged commit c2ae7ac into lcompilers:main Dec 14, 2023
13 checks passed
@certik
Copy link
Contributor

certik commented Dec 14, 2023

Tests pass now, thanks!

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

Successfully merging this pull request may close these issues.

2 participants