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]
--
https://mail.python.org/mailman/listinfo/python-list
- Re: backslash in triple quoted string Left Right via Python-list
- Re: backslash in triple quoted string Left Right via Python-list
- Re: backslash in triple quoted st... Peter J. Holzer via Python-list
- Re: backslash in triple quote... Left Right via Python-list
- Re: backslash in triple q... Chris Angelico via Python-list
- Re: backslash in tri... Left Right via Python-list
- Re: backslash in... Chris Angelico via Python-list
- Re: backslash in... Left Right via Python-list
- Re: backslash in... Chris Angelico via Python-list
- Re: backslash in... Left Right via Python-list
- Re: backslash in triple q... Richard Damon via Python-list
- Re: backslash in triple q... Peter J. Holzer via Python-list
- Re: backslash in tri... Left Right via Python-list
- Re: backslash in... Chris Angelico via Python-list
- Re: backslash in... Left Right via Python-list
- Re: backslash in... Greg Ewing via Python-list
- Re: backslash in... Left Right via Python-list
- Re: backslash in... Greg Ewing via Python-list
- Re: backslash in triple q... Keith Thompson via Python-list
- Re: backslash in tri... Left Right via Python-list
- Re: backslash in... Keith Thompson via Python-list
