Irit Katriel <iritkatr...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue31907>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to