Deutsch English Français Italiano |
<mailman.33.1746683687.3008.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: Left Right <olegsivokon@gmail.com> Newsgroups: comp.lang.python Subject: Re: backslash in triple quoted string Date: Thu, 8 May 2025 07:54:34 +0200 Lines: 37 Message-ID: <mailman.33.1746683687.3008.python-list@python.org> References: <CA+HdcZhMPvojVkAnGNy6-qA1Lf8LDG_Wjxef0xfSNQzU=BUEzw@mail.gmail.com> <CAJQBtgmV0+EViR6yWoY22VjHiVZOD6eaPiAhDfUMJRQRj=PfCQ@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de KBxFodiimxDFEkPO8CTIxwRNS2yc6lKBRlLUY6LQAACg== Cancel-Lock: sha1:l6JgtFWOVFEb38OXXpVrPU+XBOo= sha256:8vYoJBxcML9OllRnEG7J+eu0FPTs7nOxrkCw5XuBYtM= Return-Path: <olegsivokon@gmail.com> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=iNONiNWy; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.037 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'this:': 0.03; 'van': 0.07; 'python.': 0.08; 'url:mailman': 0.09; '"""': 0.09; 'cc:addr :python-list': 0.09; 'though.': 0.09; 'url:listinfo': 0.15; '2025': 0.16; 'bob': 0.16; 'cc:name:python': 0.16; 'crashed': 0.16; 'generates': 0.16; 'subject:string': 0.16; 'victor': 0.16; 'wrote:': 0.16; 'python': 0.16; 'instead': 0.17; 'bug': 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.20; 'url- ip:188.166.95.178/32': 0.20; 'url-ip:188.166.95/24': 0.20; 'url- ip:188.166/16': 0.20; 'run': 0.23; 'cc:2**0': 0.25; 'tried': 0.26; 'example,': 0.28; 'it,': 0.29; 'think': 0.30; 'comment': 0.31; 'program,': 0.31; 'message-id:@mail.gmail.com': 0.31; 'program': 0.31; 'python-list': 0.32; 'raw': 0.32; 'but': 0.32; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.35; 'invalid': 0.35; 'header:In-Reply-To:1': 0.35; "it's": 0.36; 'change': 0.36; 'could': 0.37; 'url-ip:151.101.0.223/32': 0.37; 'url-ip:151.101.128.223/32': 0.37; 'url-ip:151.101.192.223/32': 0.37; 'url-ip:151.101.64.223/32': 0.37; 'url-ip:188/8': 0.38; 'use': 0.39; 'something': 0.39; 'quite': 0.39; 'valid': 0.39; 'skip:b 10': 0.63; 'skip:r 20': 0.64; 'your': 0.64; 'in:': 0.64; 'top': 0.65; 'well': 0.65; 'canada': 0.67; 'email:': 0.68; 'der': 0.69; 'sequence': 0.69; 'free': 0.71; 'future': 0.72; '....': 0.76; 'supposed': 0.76; 'url:ca': 0.76; '****': 0.84; 'email name:bob': 0.84; 'eventually': 0.84; 'strings': 0.84; 'british': 0.91; 'url:music': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746683685; x=1747288485; darn=python.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=M0vH7vqqbE8kpQwFHI4nIp4HwtMl7D+jA8stHEqJ+rI=; b=iNONiNWyRf1oJ2AZWL+YkEL0d+68foFRXj0wJ9hCz8GEaiGSqCr2rtynyk/gtrfiEX Z6NJhkhG6qCvrx+LCg3/b9de7wuxusvM9BM/BlX5sUg4LMEPAbDRbnWom+ImBlt9dZ70 H0RqaZpDXey9L7YjmXYqzdk74ApJnmiEv7BtoA3WpzoOLP223L76z+1idiMbVxCAlDZ7 kUh34aOTwLWjY1lF8t0QQJlu1ATl0RpSwdonLzpKB9m44NntMjKs1CNO9XlMiH621Gd7 rdWpiEiOiErPh0tD4cL4XeTNm2C06/OrdGiBgE3A7MLgM4S9Yph1MALJ3sVq9YYHtE8w QKkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746683685; x=1747288485; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M0vH7vqqbE8kpQwFHI4nIp4HwtMl7D+jA8stHEqJ+rI=; b=wly9SciEN7BqirRthmKXJv2D9TyX4atcfY+Mct+aRx1hOXYEwesUTafW6OcZ+MYZCD aehMX19UIynHobCdLsXTxB96aKoS518r2JAQLWWURiWas+CusmKQK5hO4kZ4iKaAEvMo cRLrSVUeMXHDl5JGYI2qCpUQOxTYhdTmqfBm0jZ1QuC3v7LwQaf0R8yJRCnDteX/R1ul KHIfs8Gs8taM6gLbQuk6BLXc2lRuiAFGl/s5zM/L56QZMscUCSxn9GUfGiTakmLZ1MiV fSBotG01NE0k+5qEXOb9ukNoWca3w3qN2Lc1kaYePIKJerTgMfJQUhKpu3/20DdGaCmb Pr/w== X-Gm-Message-State: AOJu0YyaS/l/OXpLq74dcpPUXtOV/BHSx8q6YMuQ86GVs9bv2dxjNyhK n+By+CE/6JBdiJLRbMdC/LApspvv0G2Tjewjl0pNibHDco2P6hayC0N7MxpQlsRkxm91HBWDUeZ 4g/beWvibqVjH1h7K/nVA/d+upis+pDy4 X-Gm-Gg: ASbGncsid0hxsxRQ7Yx08bWvRaDFk5NiT9jvrwwGFx87153yQeJ0nZa4PpJVDo6oxmP YqBaSRZ84ZTgc91OZ4wlheW8FFNtzFR+DhCEzs/ERm5ri/YKXJfrO0mfdK2MVP+kW3kV0lAtNSA H+inpZPoOOQG/TlQHNO9Vuh4AfMDeIMRCLSO/NOLbL64EUhaChE5rh X-Google-Smtp-Source: AGHT+IFphPynp8PJiYpyuGip2YA4g8/KFlhqScnf2/j/0oMB5BTjQN/5ntO42igH+zUPscFD3qpZZo3XtS11y4CFxxU= X-Received: by 2002:a05:620a:29c5:b0:7ca:cd70:718b with SMTP id af79cd13be357-7ccf9e8613amr322402385a.35.1746683685345; Wed, 07 May 2025 22:54:45 -0700 (PDT) In-Reply-To: <CA+HdcZhMPvojVkAnGNy6-qA1Lf8LDG_Wjxef0xfSNQzU=BUEzw@mail.gmail.com> X-Gm-Features: ATxdqUHfz7a5om1qGSfaxWI8NHwbvmNIn1fq1paj8w_2SlRW2U9dxMifuXkq5vk X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <CAJQBtgmV0+EViR6yWoY22VjHiVZOD6eaPiAhDfUMJRQRj=PfCQ@mail.gmail.com> X-Mailman-Original-References: <CA+HdcZhMPvojVkAnGNy6-qA1Lf8LDG_Wjxef0xfSNQzU=BUEzw@mail.gmail.com> Bytes: 7078 I think it could be this: A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+\.\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence, use raw strings for regular expression: re.compile(r"\d+\.\d+")). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. (Contributed by Victor Stinner in gh-98401.) Found in: https://docs.python.org/3/whatsnew/3.12.html#other-language-changes It's not supposed to crash your program though. If the program crashes because of it, it's a bug in Python. On Thu, May 8, 2025 at 7:00=E2=80=AFAM Bob van der Poel via Python-list <python-list@python.org> wrote: > > Did something change in python buggering up my use of a "\ " sequence in = a > triple quoted string? > > I have yet to go through my archive on the program, but I tried to run it > today and it crashed quite spectacularly when it hit a """ .... """ line > being used as a comment at the top of a function. I changed the "\" to a > "/" and all is well now. > > > -- > > **** Listen to my FREE CD at http://www.mellowood.ca/music/cedars **** > Bob van der Poel ** Wynndel, British Columbia, CANADA ** > EMAIL: bob@mellowood.ca > WWW: http://www.mellowood.ca > -- > https://mail.python.org/mailman/listinfo/python-list