-
Notifications
You must be signed in to change notification settings - Fork 18
Implement str.format() #29
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
Yeah, hit that a lot when adding new modules. |
I think we have three options.
What would be Ideal solution? I guess CPython version? |
I think newformat will be problematic because of all the pypy specific extensions used in that file. The stringformat lib is a good find! It would require a little hackery because the grumpy Go package would need to somehow patch str.format with the generated code for stringformat.py. But it is doable and it could be a good stopgap until we can implement something ourselves. |
Monkey-patching method on builtins is easier on grumpy than (CPython](https://gist.github.com/mahmoudimus/295200) Can we keep as a feature or will forbid like CPython?
|
google#171 opened by @trotterdylan commented on 19 Jan 2017
There's a lot stdlib code (especially in the unittest library) that uses str.format() so this will become very important soon.
The text was updated successfully, but these errors were encountered: