[issue41411] Improve and consolidate f-strings docs
Guido van Rossum
report at bugs.python.org
Mon Jul 27 12:53:08 EDT 2020
Guido van Rossum <guido at python.org> added the comment:
It's basically an accident that the only f-strings docs are in the language reference. Yes, they should be there, and the text there is pretty good *for the reference*, but there isn't much about them elsewhere outside of the tutorial, so everything links there. Maybe we need a section on them in the library part, of intermediate complexity between what's in the tutorial an what's in the reference. This could be on equal footing with the descriptions of % formatting and .format(), which seem to be quite extensive. We might also be able to share some text between .format() and f-strings, since the `!x` and `:...` parts are treated identically AFAICT. This would be another refactoring of some part of the docs.
----------
nosy: +gvanrossum
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41411>
_______________________________________
More information about the Python-bugs-list
mailing list