Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"It's the best thing since professional golfers on 'ludes." -- Rick Obidiah


devel / comp.lang.python / Re: [py-usr] flake8 gives me a W605 but Python don't

SubjectAuthor
o Re: [py-usr] flake8 gives me a W605 but Python don'tReto

1
Re: [py-usr] flake8 gives me a W605 but Python don't

<mailman.425.1662839357.20444.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=23901&group=comp.lang.python#23901

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: reto@labrat.space (Reto)
Newsgroups: comp.lang.python
Subject: Re: [py-usr] flake8 gives me a W605 but Python don't
Date: Sat, 10 Sep 2022 21:41:04 +0200
Lines: 16
Message-ID: <mailman.425.1662839357.20444.python-list@python.org>
References: <4MQ1zZ59Tlz6tr9@submission01.posteo.de>
<20220910194104.fb2ixwer6ehzemz3@feather>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.uni-berlin.de gUreRrP48iaYlHDm1jEOwAzvrfQ3nT/ipcMGnWdHsy1Q==
Return-Path: <reto@labrat.space>
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=labrat.space header.i=@labrat.space header.b=OzSwg7Mb;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.010
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '2022': 0.05; 'else.':
0.07; 'string': 0.07; 'skip:` 10': 0.09; 'subject:but': 0.09;
'url:reference': 0.09; 'subject:Python': 0.12; 'problem.': 0.15;
'syntax': 0.15; 'backslash': 0.16; 'i.e.,': 0.16; 'literals':
0.16; 'subject:usr': 0.16; 'yield': 0.16; 'wrote:': 0.16;
'python': 0.16; 'to:addr:python-list': 0.20; 'subject:: [': 0.21;
'subject:] ': 0.21; 'sat,': 0.22; 'anything': 0.25; 'behavior':
0.26; 'fact': 0.28; 'output': 0.28; 'error': 0.29; "doesn't":
0.32; '(this': 0.32; 'sep': 0.32; 'but': 0.32; 'header:In-Reply-
To:1': 0.34; 'running': 0.34; 'invalid': 0.35; 'meaning': 0.35;
"it's": 0.37; 'in,': 0.60; '10,': 0.61; 'gives': 0.62; 'simply':
0.63; 'received:116': 0.64; 'sequence': 0.69; 'resulting': 0.70;
'recognized': 0.75; 'left': 0.83; 'sequence.': 0.84; 'fall': 0.95;
'received:178': 0.96
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=labrat.space;
s=201904; t=1662838904;
bh=KE3gmt7C/89HQt0W8hiywTzCmwOLKtFEtgwEjKxnRmM=; l=1006;
h=Date:From:To:Subject:Message-ID:References:MIME-Version:
Content-Type:Content-Disposition:In-Reply-To:From:To:CC:Date:
Subject:Content-Type:Content-Disposition:Reply-To:In-Reply-To:
MIME-Version:Message-ID:References;
b=OzSwg7MbeLy414GnMMKx+0G1GxsQM+HYU+WtL7ay/CPjcQZk+3pL+yF63dBFElSfY
qcdP//FB0c8Isj8F75zJCi4RR8wyNL+tO5ci0QdYsOVcMUNkZIqRP8MAYQsCc/T8BA
B+k9gOBcYomjGMv6mXtJW7Z2Wwq6Xe2pNxgTimtnjm9S4u5dUyE9JfFL9YXDmSQSFY
KJlSXcaPjWmenpk5iM7ycFOgdSgQ5iJE4M9NpAfewOoJpqSgKRNu6p/sKimUL/hoxw
AHHWhijaTGUnvzfoYGb9aMgAv6wnLjo+deEyL2gfBe8nURvTOtigeX/ykr+Vxx0CJP
SLDcnQRnb1FxA==
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <4MQ1zZ59Tlz6tr9@submission01.posteo.de>
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: <20220910194104.fb2ixwer6ehzemz3@feather>
X-Mailman-Original-References: <4MQ1zZ59Tlz6tr9@submission01.posteo.de>
 by: Reto - Sat, 10 Sep 2022 19:41 UTC

On Sat, Sep 10, 2022 at 06:46:33PM +0000, c.buhtz@posteo.jp wrote:
>
> But running this with Python 3.9.2 makes no problem. Python doesn't
> give me a `SyntaxWarning` or anything else. Python doesn't give me an
> error or warning. Only `flymake8` gives me this error.

Well, it's not a syntax error.
Escape sequences with no meaning simply yield the escape sequence.

As in, '\d' is simply '\d', in contrast with say '\u' which is invalid
and if fact throws a SyntaxError.

>Unlike Standard C, all unrecognized escape sequences are left in the string unchanged, i.e., the backslash is left in the result. (This behavior is useful when debugging: if an escape sequence is mistyped, the resulting output is more easily recognized as broken.) It is also important to note that the escape sequences only recognized in string literals fall into the category of unrecognized escapes for bytes literals.

from https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals


devel / comp.lang.python / Re: [py-usr] flake8 gives me a W605 but Python don't

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor