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 c5aa74d commit 12203d9Copy full SHA for 12203d9
1 file changed
Doc/whatsnew/3.8.rst
@@ -50,7 +50,6 @@ For full details, see the :ref:`changelog <changelog>`.
50
51
.. testsetup::
52
53
- from datetime import date
54
from math import cos, radians
55
from unicodedata import normalize
56
import re
@@ -259,8 +258,9 @@ Added an ``=`` specifier to :term:`f-string`\s. An f-string such as
259
258
``f'{expr=}'`` will expand to the text of the expression, an equal sign,
260
then the representation of the evaluated expression. For example:
261
+ >>> import datetime as dt
262
>>> user = 'eric_idle'
263
- >>> member_since = date(1975, 7, 31)
+ >>> member_since = dt.date(1975, 7, 31)
264
>>> f'{user=} {member_since=}'
265
"user='eric_idle' member_since=datetime.date(1975, 7, 31)"
266
0 commit comments