-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Implement % string/bytes formatting #403
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
I can take a look at this. I've been working on str.format and have a fairly complete implementation. I'm just testing the floating point stuff now. I wound up refactoring a bunch of the low-level pfenv functions from printf. |
Why it's not in the mainline then? ;-) And yes, is you're on this topic, please go for it, but it would be nice to have basic implementation (%s/%r) soon, and then work on elaborating it. |
It's not on mainline yet because I haven't finished coding it :) As soon as its all working and passing tests, then I'll be doing a pull request for the str.format stuff, which should be within a couple of days. Right now, it implements everything but the comma modifier, and I'm just hooking up the floating point stuff. I'll defer the comma operator for a later merge request. If you want to do the very basic support for % (perhaps with just strings), I can take that and hook in the rest. |
Sounds good, pushed as 4db727a |
I think this has been implemented, thanks @dhylands! |
atmel-samd: Fix SAMD51 SWCLK reset so we can connect the JLink
While I personally prefer %-style string formatting, I refrained from trying to implement it, because having both str.format and str % tuple seemed like redundancy for small Python implementation but:
The text was updated successfully, but these errors were encountered: