Re: backslash in triple quoted string
Richard Damon <[email protected]>
| Newsgroups | comp.lang.python |
|---|---|
| Message-ID | <[email protected]> |
On 05/11/2025 6:36 AM EDT Left Right via Python-list
<[1][email protected]> 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:[email protected]