Re: backslash in triple quoted string

2025-05-11 Thread Greg Ewing via Python-list
On 12/05/25 3:21 am, Left Right wrote: The point is that the error is wrong. It cannot be a syntax error and at the same time the program compiles. But the message doesn't say it's an error. It uses the word "warning", not "error". You're tilting at a straw horse here. -- Greg -- https://mai

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
Why of all people would I respect you? What did you ever do other than insult me? :) Now you are acting surprised? On Sun, May 11, 2025 at 7:38 PM Chris Angelico wrote: > > On Mon, 12 May 2025 at 03:35, Left Right wrote: > > > > https://gitlab.com/doodles-archive/protopy/-/blob/master/cris-angel

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
On Mon, 12 May 2025 at 03:35, Left Right wrote: > > https://gitlab.com/doodles-archive/protopy/-/blob/master/cris-angelico-is-a-moron.org?ref_type=heads > Here's a proof that I have commit rights to this repo > I didn't ask for that, and you don't even have the respect to spell my name correctly.

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
https://gitlab.com/doodles-archive/protopy/-/blob/master/protopy/lib/protopy.y?ref_type=heads Here's one. It's not great, not awful. https://gitlab.com/doodles-archive/protopy/-/blob/master/cris-angelico-is-a-moron.org?ref_type=heads Here's a proof that I have commit rights to this repo On Sun,

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
Oh, so this is where 4chan relocated after they were hacked? What a refined discussion! On Sun, May 11, 2025 at 5:28 PM Chris Angelico wrote: > > On Mon, 12 May 2025 at 01:24, Left Right via Python-list > wrote: > > > > But, sure, go ahead, foam at the mouth, if it > > makes you feel better abo

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
On Mon, 12 May 2025 at 01:24, Left Right via Python-list wrote: > > But, sure, go ahead, foam at the mouth, if it > makes you feel better about it. Projecting, much? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
On Mon, 12 May 2025 at 01:19, Left Right wrote: > > > Have you ever built a language parser? > > I've lost count by now. Probably fewer than hundred times though. Show me then. Prove it. You're all hot air and opinions and bluster. Show some actual code, and show that you can do right what you're

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
Hahah... what a pile of rubbish. The point is that the error is wrong. It cannot be a syntax error and at the same time the program compiles. You need to choose one. But, sure, go ahead, foam at the mouth, if it makes you feel better about it. -- https://mail.python.org/mailman/listinfo/python-lis

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
> Have you ever built a language parser? I've lost count by now. Probably fewer than hundred times though. -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Peter J. Holzer via Python-list
On 2025-05-11 12:36:31 +0200, Left Right via Python-list wrote: > Then it just means that the grammar lies. No, because the parser accepts the sequence. And it produces exactly what the description says. The program #!/usr/bin/python3 print("start") for i in range(3): print("\copy") print("

Re: backslash in triple quoted string

2025-05-11 Thread Richard Damon via Python-list
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 grammat

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
On Sun, 11 May 2025 at 20:38, Left Right via Python-list wrote: > > My comment was more of an irony really. It's plenty obvious that the > grammar is a lie. The reason is that it's tedious to put the actual > intender rules into the grammar, and so whoever wrote the grammar > decided to cut corner

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
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. My comment was more of an irony really. It's plenty obvious that the grammar is a lie. The reason is that it's tedious to put the actual intender rules into the grammar, an

Re: backslash in triple quoted string

2025-05-11 Thread Peter J. Holzer via Python-list
On 2025-05-08 08:05:54 +0200, Left Right via Python-list wrote: > Also, it appears that the change linked above is a lie: Such strong words ... > https://docs.python.org/3/reference/lexical_analysis.html#grammar-token-python-grammar-longstringitem > > According to the grammar, any character can