Skip to content

Commit 33db068

Browse files
authored
bpo-29928: Add f-string to the Glossary (GH-864)
1 parent 7a26464 commit 33db068

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/glossary.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ Glossary
320320
A module written in C or C++, using Python's C API to interact with the
321321
core and with user code.
322322

323+
f-string
324+
String literals prefixed with ``'f'`` or ``'F'`` are commonly called
325+
"f-strings" which is short for
326+
:ref:`formatted string literals <f-strings>`. See also :pep:`498`.
327+
323328
file object
324329
An object exposing a file-oriented API (with methods such as
325330
:meth:`read()` or :meth:`write()`) to an underlying resource. Depending

0 commit comments

Comments
 (0)