Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You can't have everything... where would you put it? -- Steven Wright


devel / comp.lang.python / Re: What to use for finding as many syntax errors as possible.

SubjectAuthor
o Re: What to use for finding as many syntax errors as possible.Peter J. Holzer

1
Re: What to use for finding as many syntax errors as possible.

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-python@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Re: What to use for finding as many syntax errors as possible.
Date: Sun, 9 Oct 2022 19:29:32 +0200
Lines: 47
Message-ID: <mailman.570.1665336575.20444.python-list@python.org>
References: <a95001e1-b60e-63ce-d363-30481d115282@vub.be>
<20221009161718.n5fokglnkw3nslnk@hjp.at>
<e49349d0-5845-a39f-f4f9-f7001dc23261@tompassin.net>
<20221009172932.4wud7mixboy6rvhl@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="4vr3f2t5sacrbxeu"
X-Trace: news.uni-berlin.de 579cUnEiQA3AdCXbKWhvQg8lCk0KfCuJTqp2sqgFXPaQ==
Return-Path: <hjp-python@hjp.at>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'content-
type:multipart/signed': 0.05; 'content-type:application/pgp-
signature': 0.09; 'filename:fname piece:asc': 0.09;
'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; 'though.': 0.09;
'"creative': 0.16; '__/': 0.16; 'antoon': 0.16; 'challenge!"':
0.16; 'from:addr:hjp-python': 0.16; 'from:addr:hjp.at': 0.16;
'from:name:peter j. holzer': 0.16; 'hjp@hjp.at': 0.16; 'holzer':
0.16; 'limitations.': 0.16; 'reality.': 0.16; 'solves': 0.16;
'stross,': 0.16; 'subject:syntax': 0.16; 'url-
ip:212.17.106.137/32': 0.16; 'url-ip:212.17.106/24': 0.16; 'url-
ip:212.17/16': 0.16; 'url:hjp': 0.16; '|_|_)': 0.16; 'wrote:':
0.16; 'python': 0.16; 'uses': 0.19; 'to:addr:python-list': 0.20;
'sense': 0.28; 'think': 0.32; 'subject:for': 0.33; 'same': 0.34;
'header:In-Reply-To:1': 0.34; 'people': 0.36; 'mentioned': 0.39;
'subject:What': 0.40; 'received:212': 0.62; 'requirement': 0.64;
'received:userid': 0.66; 'exactly': 0.68; 'url-ip:212/8': 0.69;
'tools': 0.74; 'received:at': 0.84; 'subject:many': 0.84
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <e49349d0-5845-a39f-f4f9-f7001dc23261@tompassin.net>
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: <20221009172932.4wud7mixboy6rvhl@hjp.at>
X-Mailman-Original-References: <a95001e1-b60e-63ce-d363-30481d115282@vub.be>
<20221009161718.n5fokglnkw3nslnk@hjp.at>
<e49349d0-5845-a39f-f4f9-f7001dc23261@tompassin.net>
 by: Peter J. Holzer - Sun, 9 Oct 2022 17:29 UTC
Attachments: signature.asc (application/pgp-signature)

On 2022-10-09 12:59:09 -0400, Thomas Passin wrote:
> https://stackoverflow.com/questions/4284313/how-can-i-check-the-syntax-of-python-script-without-executing-it
>
> People seemed especially enthusiastic about the one-liner from jmd_dk.

I don't think that one-liner solves Antoon's requirement of continuing
after an error. It uses just the normal python parser so it has exactly
the same limitations.

Some of the mentioned tools may do what Antoon wants, though.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

Attachments: signature.asc (application/pgp-signature)

devel / comp.lang.python / Re: What to use for finding as many syntax errors as possible.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor