This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients BTaskaya, ammar2, pablogsal
Date 2021-08-11.07:59:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628668742.09.0.246164919692.issue44885@roundup.psfhosted.org>
In-reply-to
Content
Given this code:

print(f"Here is that pesky {xxx/2:.3f} again")

The traceback prints:

Traceback (most recent call last):
  File "/home/pablogsal/github/python/main/lel.py", line 1, in <module>
    print(f"Here is that pesky {xxx/2:.3f} again")
           ^^^
NameError: name 'xxx' is not defined

Removing the formatting part ":.3f" makes it work as expected
History
Date User Action Args
2021-08-11 07:59:02pablogsalsetrecipients: + pablogsal, ammar2, BTaskaya
2021-08-11 07:59:02pablogsalsetmessageid: <1628668742.09.0.246164919692.issue44885@roundup.psfhosted.org>
2021-08-11 07:59:02pablogsallinkissue44885 messages
2021-08-11 07:59:01pablogsalcreate