| Deutsch English Français Italiano |
|
<20240826155113.000005ba@gmail.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: John Ames <commodorejohn@gmail.com>
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Mon, 26 Aug 2024 15:51:13 -0700
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <20240826155113.000005ba@gmail.com>
References: <uu54la$3su5b$6@dont-email.me>
<uvbfii$3mom0$1@news.xmission.com>
<20240412094809.811@kylheku.com>
<87il0mm94y.fsf@tudado.org>
<way-20240413091747@ram.dialup.fu-berlin.de>
<87il0lldf8.fsf@tudado.org>
<choices-20240413123957@ram.dialup.fu-berlin.de>
<v9lm2k$12qhv$1@dont-email.me>
<v9m4gd$14scu$1@dont-email.me>
<20240815182717.189@kylheku.com>
<v9npls$1fjus$1@dont-email.me>
<v9t204$2dofg$1@dont-email.me>
<va28pi$3dldm$1@dont-email.me>
<va2ro9$3gd7v$1@dont-email.me>
<va2vt0$3h3gj$1@dont-email.me>
<va44rh$3p1l6$1@dont-email.me>
<va45eq$3pkt9$1@dont-email.me>
<va4aut$3q4g0$1@dont-email.me>
<va4fbr$3qvij$1@dont-email.me>
<va5108$3tmmd$1@dont-email.me>
<va51ok$3tqr9$1@dont-email.me>
<va5ec2$3vluh$1@dont-email.me>
<va6q4g$c1a7$1@dont-email.me>
<va6rpa$c6bg$1@dont-email.me>
<va6se9$cb8e$1@dont-email.me>
<20240826083330.00004760@gmail.com>
<vaises$2k7o6$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Date: Tue, 27 Aug 2024 00:51:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c62baac07f031517b799d089578b332c";
logging-data="2758469"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+H/8oeFb8+VaQTqdp4LCMHCQXodD6h4BY="
Cancel-Lock: sha1:cauSSAvo2IAojHFDJgqBJReY3Mk=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
Bytes: 3128
On Mon, 26 Aug 2024 21:35:25 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> I restore the redundancy by using =E2=80=9C#end=E2=80=9D comments. E.g. a=
seriously
> nontrivial case:
But even if that helps you organizationally, it doesn't resolve issues
of the interpreter potentially mis-parsing things due to mismatches in
tab/space factor between $EDITOR and the Python RTE, which is a truly
ridiculous thing to have to be concerned about.
(Thing I'm curious about, but don't have a test environment to hand -
does a blank line with a different indent level, in between lines of
the same level, break out of the block? E.g., given the following:
if condition:
foo()
=20
bar()
baz()
if one needs to re-arrange the order of operations, for reasons, and
one is incautious about selecting and shuffling lines in one's editor,
such that one ends up with this:
if condition:
bar()
foo()
=20
baz()
....what happens? Does the interpreter catch this as an "obvious"
mistake? Does foo() get called regardless of condition? Depending on
$EDITOR/settings this is visually indistinguishable and not a difficult
position to end up in.)