[issue31907] doc: Clarify error message when attempting to call function via str.format()
Irit Katriel
report at bugs.python.org
Tue Mar 23 15:23:33 EDT 2021
Irit Katriel <iritkatriel at yahoo.com> added the comment:
I would suggest the following change in https://docs.python.org/3/library/string.html#format-string-syntax
replace the sentence:
The syntax is related to that of formatted string literals, but there are differences.
by:
The syntax is related to that of formatted string literals, but it is less sophisticated and, in particular, does not support arbitrary expressions.
Is this accurate? Is it enough?
----------
nosy: +iritkatriel
title: Clarify error message when attempting to call function via str.format() -> doc: Clarify error message when attempting to call function via str.format()
versions: +Python 3.10 -Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31907>
_______________________________________
More information about the Python-bugs-list
mailing list