This repository was archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 643
Implement str.format() #171
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?
|
This was referenced Aug 21, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: