➜

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.

作者 pablogsal
收信人 BTaskaya, ammar2, pablogsal
日期 2021-08-11.07:59:01
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1628668742.09.0.246164919692.issue44885@roundup.psfhosted.org>
In-reply-to
内容
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
历史
日期 用户 动作 参数
2021-08-11 07:59:02pablogsal修改recipients: + pablogsal, ammar2, BTaskaya
2021-08-11 07:59:02pablogsal修改messageid: <1628668742.09.0.246164919692.issue44885@roundup.psfhosted.org>
2021-08-11 07:59:02pablogsal链接issue44885 messages
2021-08-11 07:59:01pablogsal创建