Deutsch   English   Français   Italiano  
<documentation-20250508163928@ram.dialup.fu-berlin.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: backslash in triple quoted string
Date: 8 May 2025 15:46:08 GMT
Organization: Stefan Ram
Lines: 29
Expires: 1 Mar 2026 11:59:58 GMT
Message-ID: <documentation-20250508163928@ram.dialup.fu-berlin.de>
References: <CA+HdcZhMPvojVkAnGNy6-qA1Lf8LDG_Wjxef0xfSNQzU=BUEzw@mail.gmail.com> <CAJQBtgmV0+EViR6yWoY22VjHiVZOD6eaPiAhDfUMJRQRj=PfCQ@mail.gmail.com> <CAJQBtgk7ZoURixi3404asBzJX4X2A5pbCsd6SVWuqbqnMgOgQw@mail.gmail.com> <mailman.34.1746684378.3008.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 5Xhw/eN5xmLIP3CUhkMHlgiqo4M9prwmO2x/fDsIx4g7ch
Cancel-Lock: sha1:MySsfIU4zT1+Y9Wak5UxDPmWZmA= sha256:ianJ49xUfDiaUAbjlFSiCa9uJupf7TkM4edmvpY5oRc=
X-Copyright: (C) Copyright 2025 Stefan Ram. All rights reserved.
	Distribution through any means other than regular usenet
	channels is forbidden. It is forbidden to publish this
	article in the Web, to change URIs of this article into links,
        and to transfer the body without this notice, but quotations
        of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
	services to mirror the article in the web. But the article may
	be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US

Left Right <olegsivokon@gmail.com> wrote or quoted:
>Also, it appears that the change linked above is a lie:

  The Python documentation is a bit, "informal".

  A "more formal specification" can be found in, maybe (if I found
  the right place), the function definition "_PyBytes_DecodeEscape"
  in the source file "Objects\bytesobject.c":

|switch (*s++) {
|/* XXX This assumes ASCII! */
|case '\n': break;
|case '\\': *p++ = '\\'; break;
|case '\'': *p++ = '\''; break;
|case '\"': *p++ = '\"'; break;
.. . .

  . In 2015, Jakub Przywoski started to write a new specification:

|Python is such a well-designed, clean and enjoyable to code in 
|language so it sure deserves to have a decent syntax reference.

  . It seems, however, that he was not yet able to finish his project
  or to update it to newer versions of Python. It would be a full-time
  project I think!

  Effectively, Python is what CPython does.