On 03/26/2015 01:09 AM, Ian Kelly wrote:
>
>
>>>>>
https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation
What the grammar that you quoted from shows is that STRING+ is an
expression. The individual STRINGs of a STRING+ are not expressions,
except to the extent that they can be parsed in isolation as a
STRING+. By the same token, a STRING+ is a single string literal, not
an aggregate of several.
That's the way I also read the BNF. But something I cannot find in that
chapter of the reference is the definition of STRING+
Naturally searching for 'string' finds way too many spurious refs.
--
DaveA
--
https://mail.python.org/mailman/listinfo/python-list