Message399372
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 |
|
Date |
User |
Action |
Args |
2021-08-11 07:59:02 | pablogsal | set | recipients:
+ pablogsal, ammar2, BTaskaya |
2021-08-11 07:59:02 | pablogsal | set | messageid: <1628668742.09.0.246164919692.issue44885@roundup.psfhosted.org> |
2021-08-11 07:59:02 | pablogsal | link | issue44885 messages |
2021-08-11 07:59:01 | pablogsal | create | |
|