Sujet : Re: backslash in triple quoted string
De : richard (at) *nospam* damon-family.org (Richard Damon)
Groupes : comp.lang.pythonDate : 11. May 2025, 12:16:05
Autres entêtes
Message-ID : <mailman.38.1746962491.3008.python-list@python.org>
References : 1 2 3 4 5 6
User-Agent : Open-Xchange Mailer v8.33.58
On 05/11/2025 6:36 AM EDT Left Right via Python-list
<[1]
python-list@python.org> wrote:
Then it just means that the grammar lies. The two claims are mutually
exclusive, so either one is a lie or the other or both.
No, it more points out that not all errors are grammatical. The grammar
does not (and can not) fully define what is a legal program. Some forms of
error are semantic, like undefined symbols.
It appears that rather than try to make the grammar complicated enough to
describe what is a valid string, that operation was moved into the
semantics of a string, which simplifies the rules quite a bit.
References
Visible links
1. mailto:
python-list@python.org