-
Notifications
You must be signed in to change notification settings - Fork 137
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
PEP 498 -- Literal String Interpolation #50
Comments
I agree, I came here to open the same issue. I can give it a try and add some examples to thank the thousand times I've opened the website when I didn't remember how to |
@fepegar That would be awesome! I do not use f-strings yet so I can't do it myself, but I am sure it will be very useful to have such a recap on this awesome new feature! |
I also came here to propose this, but considering that a current task of this page is
f-strings don't fit in here, since they are not backward-compatible. However, I think f-strings are great and Python 3 is too, so IMO it's worth to include them on this really very helpful page : ) |
OTOH there are suggestions to add notes about Incidentally, either this or #24 should be closed. |
#24 is limited to contributors. I want to help. What can I do? Simply adding or translating examples would be easy. However, it appears to me there is more to be done. For starters, how to present the coexistence of |
@martin-martin I don't share your opinion and I don't see a reason why f-strings don't belong here as they are used to format strings.
|
Hey everyone, thanks for being so interested in the continued evolving of the page :) Just to weigh in here why it's taking so long to get a new updated version (with f-strings) out: Almost all current examples use literals (e.g. Also there is currently no good place to explain the syntactic differences between .format and f-strings. For all those reasons I've come to the conclusion that the current structure needs an overhaul in order to support those additions. I really hope I'll find some time over the summer to work on this. |
Shameless plug - a few days ago, I launched a new site instead, fstring.help (repo). It focuses solely on f-strings (thus avoiding the issues regarding the current structure). Much of the content is based on pyformat.info (with proper credit, I hope - thanks @ulope, @zerok and others!). I indeed ended up adding some variables to make the f-strings more readable. IMHO that works out fine. |
Would it be beneficial to add f-strings to this cheat sheet? I hope this is not vastly out the website's focus.
The text was updated successfully, but these errors were encountered: