Re: Python (was Re: I did not inhale)

Liste des GroupesRevenir à cu programmer 
Sujet : Re: Python (was Re: I did not inhale)
De : invalid (at) *nospam* invalid.invalid (Richard Kettlewell)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.misc
Date : 27. Aug 2024, 13:46:36
Autres entêtes
Organisation : terraraq NNTP server
Message-ID : <wwva5gykuab.fsf@LkoBDZeT.terraraq.uk>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Bart <bc@freeuk.com> writes:
On 27/08/2024 09:39, Richard Kettlewell wrote:
John Ames <commodorejohn@gmail.com> writes:
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.
In many years of using Python routinely and extensively I’ve simply
never found the whitespace issues that people are worrying about here to
be a problem in practice. Some of this may be a matter of experience but
if so, it’s a form of experience that must have built up very quickly.
As an aesthetic objection, of course, there’s no accounting for
taste. But it doesn’t seem to be a practical problem in reality.
(In contrast C’s rules have occasionally been a practical problem,
contributing to at least one high-profile software vulnerability and
attracting compiler warnings to mitigate the risks.)
>
These are the problems I've seen. I haven't used the language
extensively, but I've used it enough.

All I can say is that for the most part these issues just don’t arise
for me. Some are plainly aesthetic; I already addressed that. Others
sounds like issues with your tooling - changing the indentation of a
range of lines is easy in most editors, for example.

The cases that actually seem familiar:

(2) You want to temporarily comment out an 'if' line so that the
following block is unconditional. You can't do that with also
unindenting the block. And, also  the block then merges with the
following one as it's at the same level, so when you want to change it
back...

You can put ‘or True’ at the end of the condition.

(5) Sometimes you want to temporarily comment out the contents of a
block. But Python doesn't allow an empty block; now you have to use
'pass'. And then get rid of if later.

You can put an ‘if False’ at the top.

The fact that people have to resort to adding #end lines, which only
partly deals with one or two of those problems, suggest that something
is badly wrong.

I’ve never encountered anyone else doing that in Python. It suggests
more than the individual doing that just doesn’t like the language, in
which case I’d just suggest that person doesn’t use it.

--
https://www.greenend.org.uk/rjk/

Date Sujet#  Auteur
13 Apr 24 * Re: I did not inhale253Stefan Ram
13 Apr 24 `* Re: I did not inhale252Stefan Ram
15 Aug 24  `* Re: I did not inhale251Kalevi Kolttonen
16 Aug 24   `* Re: Python (was Re: I did not inhale)250Lawrence D'Oliveiro
16 Aug 24    +* Re: Python (was Re: I did not inhale)246Kaz Kylheku
16 Aug 24    i`* Re: Python (was Re: I did not inhale)245Kalevi Kolttonen
16 Aug 24    i +* Re: Python (was Re: I did not inhale)2John Ames
17 Aug 24    i i`- Re: Python (was Re: I did not inhale)1D
17 Aug 24    i +* Re: Python (was Re: I did not inhale)66Muttley
17 Aug 24    i i+* Re: Python (was Re: I did not inhale)63Dmitry A. Kazakov
17 Aug 24    i ii+* Re: Python (was Re: I did not inhale)60Lawrence D'Oliveiro
18 Aug 24    i iii`* Re: Python (was Re: I did not inhale)59Dmitry A. Kazakov
18 Aug 24    i iii +* Re: Python (was Re: I did not inhale)15Muttley
18 Aug 24    i iii i`* Re: Python (was Re: I did not inhale)14Dmitry A. Kazakov
18 Aug 24    i iii i `* Re: Python (was Re: I did not inhale)13Muttley
18 Aug 24    i iii i  +* Re: Python (was Re: I did not inhale)11Dmitry A. Kazakov
18 Aug 24    i iii i  i+* Re: Python (was Re: I did not inhale)2Kaz Kylheku
18 Aug 24    i iii i  ii`- Re: Python (was Re: I did not inhale)1Dmitry A. Kazakov
19 Aug 24    i iii i  i+- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
19 Aug 24    i iii i  i+- Re: Python (was Re: I did not inhale)1Muttley
25 Aug 24    i iii i  i`* Re: Python (was Re: I did not inhale)6Sebastian
25 Aug 24    i iii i  i `* Re: Python (was Re: I did not inhale)5Dmitry A. Kazakov
25 Aug 24    i iii i  i  +* Re: Python (was Re: I did not inhale)2vallor
25 Aug 24    i iii i  i  i`- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
25 Aug 24    i iii i  i  +- Re: Python (was Re: I did not inhale)1James Kuyper
25 Aug 24    i iii i  i  `- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
18 Aug 24    i iii i  `- Re: Python (was Re: I did not inhale)1Richard Kettlewell
18 Aug 24    i iii +* Re: Python (was Re: I did not inhale)2Kenny McCormack
18 Aug 24    i iii i`- Re: Python (was Re: I did not inhale)1Muttley
18 Aug 24    i iii +* Re: Python (was Re: I did not inhale)5Kaz Kylheku
18 Aug 24    i iii i`* Re: Python (was Re: I did not inhale)4Dmitry A. Kazakov
19 Aug 24    i iii i `* Re: Python (was Re: I did not inhale)3Kaz Kylheku
19 Aug 24    i iii i  `* Re: Python (was Re: I did not inhale)2Dmitry A. Kazakov
19 Aug 24    i iii i   `- Re: Python (was Re: I did not inhale)1Kaz Kylheku
19 Aug 24    i iii `* Re: Python (was Re: I did not inhale)36Lawrence D'Oliveiro
19 Aug 24    i iii  `* Re: Python (was Re: I did not inhale)35Dmitry A. Kazakov
19 Aug 24    i iii   +* Re: Python (was Re: I did not inhale)24David Brown
19 Aug 24    i iii   i`* Re: Python (was Re: I did not inhale)23Dmitry A. Kazakov
19 Aug 24    i iii   i +* Re: Python (was Re: I did not inhale)4Muttley
19 Aug 24    i iii   i i`* Re: Python (was Re: I did not inhale)3Dmitry A. Kazakov
19 Aug 24    i iii   i i +- Re: Python (was Re: I did not inhale)1Muttley
30 Sep 24    i iii   i i `- Re: Python (was Re: I did not inhale)1Bozo User
19 Aug 24    i iii   i +* Re: Python (was Re: I did not inhale)14David Brown
20 Aug 24    i iii   i i`* Re: Python (was Re: I did not inhale)13Dmitry A. Kazakov
20 Aug 24    i iii   i i +* Re: Python (was Re: I did not inhale)3Lawrence D'Oliveiro
20 Aug 24    i iii   i i i`* Re: Python (was Re: I did not inhale)2Dmitry A. Kazakov
21 Aug 24    i iii   i i i `- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
20 Aug 24    i iii   i i +* Re: Python (was Re: I did not inhale)7David Brown
20 Aug 24    i iii   i i i`* Re: Python (was Re: I did not inhale)6Dmitry A. Kazakov
20 Aug 24    i iii   i i i +* Re: Python (was Re: I did not inhale)2David Brown
20 Aug 24    i iii   i i i i`- Re: Python (was Re: I did not inhale)1Dmitry A. Kazakov
21 Aug 24    i iii   i i i `* Re: Python (was Re: I did not inhale)3Lawrence D'Oliveiro
21 Aug 24    i iii   i i i  `* Re: Python (was Re: I did not inhale)2Dmitry A. Kazakov
22 Aug 24    i iii   i i i   `- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
20 Aug 24    i iii   i i `* Re: Python (was Re: I did not inhale)2James Kuyper
21 Aug 24    i iii   i i  `- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
19 Aug 24    i iii   i `* Re: Python (was Re: I did not inhale)4Keith Thompson
19 Aug 24    i iii   i  `* Re: Python (was Re: I did not inhale)3John Ames
20 Aug 24    i iii   i   +- Re: Python (was Re: I did not inhale)1Muttley
20 Aug 24    i iii   i   `- Re: Python (was Re: I did not inhale)1Stefan Ram
19 Aug 24    i iii   +* Re: Python (was Re: I did not inhale)8Lawrence D'Oliveiro
19 Aug 24    i iii   i`* Re: Python (was Re: I did not inhale)7Dmitry A. Kazakov
19 Aug 24    i iii   i +* Re: Python (was Re: I did not inhale)2Keith Thompson
19 Aug 24    i iii   i i`- Re: Python (was Re: I did not inhale)1Dmitry A. Kazakov
20 Aug 24    i iii   i `* Re: Python (was Re: I did not inhale)4Lawrence D'Oliveiro
20 Aug 24    i iii   i  `* Re: Python (was Re: I did not inhale)3Dmitry A. Kazakov
20 Aug 24    i iii   i   +- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
20 Aug 24    i iii   i   `- Re: Python (was Re: I did not inhale)1D
21 Aug 24    i iii   `* Re: Python (was Re: I did not inhale)2vallor
21 Aug 24    i iii    `- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
18 Aug 24    i ii+- Re: Python (was Re: I did not inhale)1Muttley
18 Aug 24    i ii`- Re: Python (was Re: I did not inhale)1Eric Pozharski
18 Aug 24    i i`* Re: Python (was Re: I did not inhale)2David Brown
18 Aug 24    i i `- Re: Python (was Re: I did not inhale)1Muttley
18 Aug 24    i `* Re: Python (was Re: I did not inhale)176David Brown
18 Aug 24    i  +* Re: Python (was Re: I did not inhale)4Keith Thompson
19 Aug 24    i  i+- Re: Python (was Re: I did not inhale)1David Brown
20 Aug 24    i  i`* Re: Python (was Re: I did not inhale)2James Kuyper
20 Aug 24    i  i `- Re: Python (was Re: I did not inhale)1Keith Thompson
20 Aug 24    i  `* Re: Python (was Re: I did not inhale)171Kalevi Kolttonen
20 Aug 24    i   +* Re: Python (was Re: I did not inhale)3Muttley
20 Aug 24    i   i+- Re: Python (was Re: I did not inhale)1Lew Pitcher
20 Aug 24    i   i`- Re: Python (was Re: I did not inhale)1Kalevi Kolttonen
20 Aug 24    i   +* Re: Python (was Re: I did not inhale)164David Brown
20 Aug 24    i   i`* Re: Python (was Re: I did not inhale)163Kalevi Kolttonen
21 Aug 24    i   i +* Re: Python (was Re: I did not inhale)155David Brown
21 Aug 24    i   i i+* Re: Python (was Re: I did not inhale)136Muttley
21 Aug 24    i   i ii`* Re: Python (was Re: I did not inhale)135David Brown
21 Aug 24    i   i ii `* Re: Python (was Re: I did not inhale)134Muttley
21 Aug 24    i   i ii  `* Re: Python (was Re: I did not inhale)133David Brown
21 Aug 24    i   i ii   `* Re: Python (was Re: I did not inhale)132Muttley
21 Aug 24    i   i ii    `* Re: Python (was Re: I did not inhale)131David Brown
22 Aug 24    i   i ii     `* Re: Python (was Re: I did not inhale)130Muttley
22 Aug 24    i   i ii      +* Re: Python (was Re: I did not inhale)6D
22 Aug 24    i   i ii      i+* Re: Python (was Re: I did not inhale)4Muttley
22 Aug 24    i   i ii      ii`* Re: Python (was Re: I did not inhale)3D
22 Aug 24    i   i ii      ii `* Re: Python (was Re: I did not inhale)2Lew Pitcher
22 Aug 24    i   i ii      ii  `- Re: Python (was Re: I did not inhale)1Muttley
22 Aug 24    i   i ii      i`- Re: Python (was Re: I did not inhale)1David Brown
22 Aug 24    i   i ii      `* Re: Python (was Re: I did not inhale)123David Brown
22 Aug 24    i   i ii       +* Re: Python (was Re: I did not inhale)114Muttley
22 Aug 24    i   i ii       `* Re: Python (was Re: I did not inhale)8Lawrence D'Oliveiro
21 Aug 24    i   i i`* Re: Python (was Re: I did not inhale)18Lawrence D'Oliveiro
21 Aug 24    i   i `* Re: Python (was Re: I did not inhale)7Muttley
21 Aug 24    i   `* Re: Python (was Re: I did not inhale)3Lawrence D'Oliveiro
16 Aug 24    `* Re: Python (was Re: I did not inhale)3Kalevi Kolttonen

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal