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
f-string '=' debugging output needs to be documented #81039
Comments
There are two problems here: what to call this feature, and where to put it. The current f-string documentation is in Doc/reference/lexical_analysis.rst, which I'm not sure is the best place to add discussion about how this feature works. This feature is run-time behavior, and goes beyond what the lexer documentation should show. |
Related issue where the '=' debug mode was implemented: https://bugs.python.org/issue36817 |
Perhaps it can be added under Tutorial? https://docs.python.org/3/tutorial/inputoutput.html#formatted-string-literals |
Hello, I'd like to work on this and will take a look. |
Not everything should be in the tutorial Otherwise, the tutorial will be too heavy and no one will finish it. It is an advanced feature. It is not necessary for beginner. But it would be nice to have the documentation for f-string expressions (less dry than in the language specification), str.format(), built-in format() and printf-style formatting in one place. Currently it is scattered across different files and even different directories. |
…hongh-92291) (cherry picked from commit 4b81139) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
…hongh-92291) (cherry picked from commit 4b81139) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Merged. Thanks! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: