Skip to content

Added some of the missing str methods #229

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

Merged
merged 3 commits into from
Dec 13, 2018
Merged

Added some of the missing str methods #229

merged 3 commits into from
Dec 13, 2018

Conversation

mcbunkus
Copy link
Contributor

I've added some of the missing methods, currently have isalnum, isnumeric, isdigit, title, swapcase, isalpha, replace, and center. The center method does center the string but I haven't found a way to fill in custom characters around it using format!() just yet

@windelbouwman
Copy link
Contributor

Ha, nicely done! If you feel lucky, you could try the format, f-string or % style formatting as well ;)

@windelbouwman windelbouwman merged commit 521f664 into RustPython:master Dec 13, 2018
@mcbunkus
Copy link
Contributor Author

Sure thing! I'll try to implement that as soon as I can

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