We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6468a97 commit 681112dCopy full SHA for 681112d
Doc/library/stdtypes.rst
@@ -2568,8 +2568,8 @@ the equal sign, and the value of the expression.
2568
This is often useful for debugging::
2569
2570
>>> number = 14.3
2571
- >>> 'number=14.3'
2572
- number=14.3
+ >>> f'{number=}'
+ 'number=14.3'
2573
2574
Whitespace before, inside and after the expression, as well as whitespace
2575
after the equal sign, is significant --- it is retained in the result::
@@ -2582,7 +2582,7 @@ Conversion specifier
2582
^^^^^^^^^^^^^^^^^^^^
2583
2584
By default, the value of a replacement field expression is converted to
2585
-string using :func:`str`::
+a string using :func:`str`::
2586
2587
>>> from fractions import Fraction
2588
>>> one_third = Fraction(1, 3)
0 commit comments