-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add missing methods to str
class.
#190
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
Comments
Looks like |
I would disagree.
|
My mistake, you're correct - misinterpreted
|
Looks like the following (maybe more) have already been implemented:
|
implement str.isprintable #1024 |
@windelbouwman What other work remains waiting for completion and implementation under this question? I am happy to contribute my spare time to this issue. |
@longwusha did you run the what is left script to check missing methods on the str type? |
When I ran the what is left script, I got these missing methods on the str type:
I am not sure are there any other people working on these. |
As we can see, some one was trying to implement str.iter in #593 . But it seems that he has no interest or time to continue this work, so I want to start to implement other missing methods on the str type based on his work. It seems that since his last commit (four months ago) the code has undergone a lot of changes, I hope that you can provide some suggestions to help me get started. I will be very grateful for your suggestion. |
@longwusha I think string iteration already works, at least I can use If you like you can pickup the work from #593, since this work was abandoned. Adding a method to an object is a very good way to get yourself up and running with the codebase. Make sure to create a test snippet in the Also, |
Another method which might be a good starter is the |
Thank you very much for your good advice, I will try to start with str.format_map. |
|
The
str
class is still missing several methods. In CPython there exist a lot of handy methods you can use on strings. To fix this issue, head over to the filevm/src/obj/objstr.rs
and add a method you found was missing.This is a good first issue. If you completed your mission, please create another good starter issue for others to get their hands dirty with the sourcecode!
The text was updated successfully, but these errors were encountered: