Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Be different: conform.


comp / comp.unix.shell / Re: Python (was Re: I did not inhale)

SubjectAuthor
* Re: I did not inhaleStefan Ram
`* Re: I did not inhaleKalevi Kolttonen
 `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  +* Re: Python (was Re: I did not inhale)Kaz Kylheku
  |`* Re: Python (was Re: I did not inhale)Kalevi Kolttonen
  | +* Re: Python (was Re: I did not inhale)John Ames
  | |`- Re: Python (was Re: I did not inhale)D
  | +* Re: Python (was Re: I did not inhale)Muttley
  | |+* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | ||+* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | |||`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | ||| +* Re: Python (was Re: I did not inhale)Muttley
  | ||| |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | ||| | `* Re: Python (was Re: I did not inhale)Muttley
  | ||| |  +* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | ||| |  |+* Re: Python (was Re: I did not inhale)Kaz Kylheku
  | ||| |  ||`- Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | ||| |  |+- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | ||| |  |+- Re: Python (was Re: I did not inhale)Muttley
  | ||| |  |`* Re: Python (was Re: I did not inhale)Sebastian
  | ||| |  | `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | ||| |  |  +* Re: Python (was Re: I did not inhale)vallor
  | ||| |  |  |`- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | ||| |  |  `- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | ||| |  `- Re: Python (was Re: I did not inhale)Richard Kettlewell
  | ||| +* Re: Python (was Re: I did not inhale)Kenny McCormack
  | ||| |`- Re: Python (was Re: I did not inhale)Muttley
  | ||| +* Re: Python (was Re: I did not inhale)Kaz Kylheku
  | ||| |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | ||| | `* Re: Python (was Re: I did not inhale)Kaz Kylheku
  | ||| |  `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | ||| |   `- Re: Python (was Re: I did not inhale)Kaz Kylheku
  | ||| `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | |||  `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   +* Re: Python (was Re: I did not inhale)David Brown
  | |||   |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   | +* Re: Python (was Re: I did not inhale)Muttley
  | |||   | |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   | | +- Re: Python (was Re: I did not inhale)Muttley
  | |||   | | `- Re: Python (was Re: I did not inhale)Bozo User
  | |||   | +* Re: Python (was Re: I did not inhale)David Brown
  | |||   | |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   | | +* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | |||   | | |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   | | | `- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | |||   | | `* Re: Python (was Re: I did not inhale)David Brown
  | |||   | |  `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   | |   +* Re: Python (was Re: I did not inhale)David Brown
  | |||   | |   |`- Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   | |   `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | |||   | |    `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   | |     `- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | |||   | `* Re: Python (was Re: I did not inhale)Keith Thompson
  | |||   |  `* Re: Python (was Re: I did not inhale)John Ames
  | |||   |   +- Re: Python (was Re: I did not inhale)Muttley
  | |||   |   `- Re: Python (was Re: I did not inhale)Stefan Ram
  | |||   +* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | |||   |`* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   | +* Re: Python (was Re: I did not inhale)Keith Thompson
  | |||   | |`- Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   | `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | |||   |  `* Re: Python (was Re: I did not inhale)Dmitry A. Kazakov
  | |||   |   +- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | |||   |   `- Re: Python (was Re: I did not inhale)D
  | |||   `* Re: Python (was Re: I did not inhale)vallor
  | |||    `- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  | ||`- Re: Python (was Re: I did not inhale)Muttley
  | |`* Re: Python (was Re: I did not inhale)David Brown
  | | `- Re: Python (was Re: I did not inhale)Muttley
  | `* Re: Python (was Re: I did not inhale)David Brown
  |  +* Re: Python (was Re: I did not inhale)Keith Thompson
  |  |`- Re: Python (was Re: I did not inhale)David Brown
  |  `* Re: Python (was Re: I did not inhale)Kalevi Kolttonen
  |   +* Re: Python (was Re: I did not inhale)Muttley
  |   |+- Re: Python (was Re: I did not inhale)Lew Pitcher
  |   |`- Re: Python (was Re: I did not inhale)Kalevi Kolttonen
  |   +* Re: Python (was Re: I did not inhale)David Brown
  |   |`* Re: Python (was Re: I did not inhale)Kalevi Kolttonen
  |   | +* Re: Python (was Re: I did not inhale)David Brown
  |   | |+* Re: Python (was Re: I did not inhale)Muttley
  |   | ||`* Re: Python (was Re: I did not inhale)David Brown
  |   | || `* Re: Python (was Re: I did not inhale)Muttley
  |   | ||  `* Re: Python (was Re: I did not inhale)David Brown
  |   | ||   `* Re: Python (was Re: I did not inhale)Muttley
  |   | ||    `* Re: Python (was Re: I did not inhale)David Brown
  |   | ||     `* Re: Python (was Re: I did not inhale)Muttley
  |   | ||      +* Re: Python (was Re: I did not inhale)D
  |   | ||      |+* Re: Python (was Re: I did not inhale)Muttley
  |   | ||      ||`* Re: Python (was Re: I did not inhale)D
  |   | ||      || `* Re: Python (was Re: I did not inhale)Lew Pitcher
  |   | ||      ||  `- Re: Python (was Re: I did not inhale)Muttley
  |   | ||      |`- Re: Python (was Re: I did not inhale)David Brown
  |   | ||      `* Re: Python (was Re: I did not inhale)David Brown
  |   | ||       +* Re: Python (was Re: I did not inhale)Muttley
  |   | ||       |`* Re: Python (was Re: I did not inhale)John Ames
  |   | ||       | +- Re: Python (was Re: I did not inhale)Muttley
  |   | ||       | `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  |   | ||       |  +* Re: Python (was Re: I did not inhale)John Ames
  |   | ||       |  |+- Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  |   | ||       |  |+- Re: Python (was Re: I did not inhale)Sebastian
  |   | ||       |  |`* Re: Python (was Re: I did not inhale)Richard Kettlewell
  |   | ||       |  +* Re: Python (was Re: I did not inhale)Bart
  |   | ||       |  `- Re: Python (was Re: I did not inhale)Kaz Kylheku
  |   | ||       `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  |   | |`* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  |   | `* Re: Python (was Re: I did not inhale)Muttley
  |   `* Re: Python (was Re: I did not inhale)Lawrence D'Oliveiro
  `* Re: Python (was Re: I did not inhale)Kalevi Kolttonen

Pages:12345678910
Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 08:01 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 10:01:13 +0200
Organization: A noiseless patient Spider
Lines: 119
Message-ID: <varu8a$dnh3$1@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me> <87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me> <87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me> <875xrkb2iq.fsf@nosuchdomain.example.com>
<vapnu2$3v4l8$1@dont-email.me> <vaquop$5ioe$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 30 Aug 2024 10:01:15 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3b8d9008b438dc7a1af6ab394661d0db";
logging-data="450083"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wpvyHSNu9lFiQkVgMzSdwC8h389I5oVU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:gqLWW6MFZPNHJ1WYqYleH5z/Zuc=
Content-Language: en-GB
In-Reply-To: <vaquop$5ioe$2@dont-email.me>
View all headers

On 30/08/2024 01:03, Lawrence D'Oliveiro wrote:
> On Thu, 29 Aug 2024 14:01:05 +0200, David Brown wrote:
>
>> On 29/08/2024 02:23, Keith Thompson wrote:
>>>
>>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>>>
>>>> On Wed, 28 Aug 2024 13:29:18 -0700, Keith Thompson wrote:
>>>>>
>>>>> But ok, I found your post and removed all the #end comments. I found
>>>>> it just as readable without them as with them.
>>>>
>>>> You know what? You are right. That example was just too
>>>> well-structured.
>>
>> So why not try to write /all/ your code in a well-structured manner, so
>> that you don't feel the need to add these "#end" comments?
>
> Because not all examples can be made that neat, as I demonstrated.

Your example could easily have been written in a more structured manner
than you did. Keith and I both demonstrated that. (And when you remove
the useless stuff from your function, it's even simpler.)

I agree that not /all/ code can easily be written in a neat,
well-structured manner - and that occasionally breaking your normal
coding convention rules can bring out patterns in the code that make it
easier to understand, and easier to write correctly. But the solid
majority of code /can/ be written in a well-structured manner, for most
languages.

>
>> def register_additional_standard(self, managed_objects) :
>> """
>> registers additional standard interfaces that are not
>> automatically installed at Connection creation time. Currently
>> the only one is the object-manager interface, registered with
>>
>> «conn».register_additional_standard(managed_objects = True)
>> """
>
> Note that Python’s indentation rules don’t apply to multiline string
> literals -- don’t you wish they did? So you end up with all that extra
> space within the literal. Do you see why I prefer to avoid that?

No - or at least, it is very hard to comprehend why you might prefer the
mess you gave. It is correct that Python multiline strings include any
indentation in the strings. There are three possibilities here -
sometimes you want the indents (and thus include them), sometimes you
don't want them (and thus you align them at the left of the text), and
sometimes you don't care (and thus put them wherever seems neatest).
Most function docstrings fall into that third category, since they are
mostly used as comments in the code and for the "help" command which
ignores the leading indents.

It is probably most common to have multiline docstrings at the left of
the file. I have never before seen a silly mess with manual \n line
breaks and line continuation characters, and I hope never to see it again.

>
>> Line continuation characters in Python are usually an indicator of poor
>> formatting, or an unhealthy obsession with line length limits.
>
> I like to keep within a line length limit of about 100 characters.
>

That's a reasonable limit, but does not change my observation.

>> I don't know if I am more experienced than you in Python (I may have
>> been using Python for longer, but you may have worked with it more), but
>> I would say that the "#end" comments directly detract from readability.
>
> Think about why you bother to indent code in languages where the compiler
> ignores such indentation anyway: it means you are expressing the structure
> of code in two different ways, one via statement brackets, and the other
> via indentation. This redundancy aids in understanding that the code does
> what you think it does.
>

In languages with explicit blocking, the delimiters determine what the
code does. The indents show the human reader what the code is supposed
to do. These are, hopefully, the same thing - but they might not be.
In Python, as there is only one source of blocking, there is no
possibility of such an error (once you have ensured you have no mix of
tabs and spaces).

Redundancy is only a help if there is a way to automatically check and
enforce consistency. Without that, redundancy can be worse than useless
- if the two methods get out of sync, the casual reader will
misunderstand the code, and the careful reader will see there is a
problem but not know what it is.

So for languages with explicit blocking, you need to be absolutely
committed to keeping consistency, and use the tools you have - editors
with automatic indents, gcc's "-Wmisleading-indentation" warning, and
anything else to ease the cognitive burden and reduce the risk of
inconsistencies.

With Python, that is simply not an issue.

(Another example of such redundancy is when people put comments saying
what a piece of code does, rather than making the code itself clear.
Changes to the code can easily lead to comments getting out of sync with
the code, leading to confusion and misunderstanding.)

> Python gets rid of this redundancy, by having the compiler take notice of
> the whitespace and removing the statement bracketing symbols. So I put it
> back, by adding statement bracketing symbols that the compiler ignores.

And that is worse than useless.

At least with languages that have explicit block delimiters, the
compiler will always have some checks on consistency. And tools (either
compiler warnings, advanced editors, linters, etc.) can do more advanced
checks. With comments, you have nothing.

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 09:38 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 11:38:05 +0200
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <vas3tt$eij4$1@dont-email.me>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me>
<vantnp$3j94i$1@dont-email.me> <vapp91$3v4l8$3@dont-email.me>
<vaqucc$5ioe$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 30 Aug 2024 11:38:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3b8d9008b438dc7a1af6ab394661d0db";
logging-data="477796"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tYt4T884xe+BE+dB2UrGftekhHeY5/2w="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:VxXIObQlvKCji/miWE47XoexOy4=
In-Reply-To: <vaqucc$5ioe$1@dont-email.me>
Content-Language: en-GB
View all headers

On 30/08/2024 00:57, Lawrence D'Oliveiro wrote:
> On Thu, 29 Aug 2024 14:24:01 +0200, David Brown wrote:
>
>> def foo(a, b, c) :
>> if a :
>> if b :
>> if c :
>> doThis()
>>
>> That looks unfinished to me. So I will add a "return" at the end (with
>> a single tab indent, in this case).
>
> A redundant “return” ... kind of like my redundant “#end” comments, except
> yours work in a more restricted set of places ...

Yes - the restriction is a major advantage. Python can check it, and
there are far fewer ways for the programmer to get it wrong.

>
>> Don't you ever just accept that a language is the way it is, and it is
>> perfectly useable that way?
>
> Of course not.

How silly. You should work to improve the things you can, instead of
wasting effort arguing with brick walls. If you want to get involved in
the design and future of a language, that's fine, but few people have
the time and skills needed or the opportunity to do it as serious paid
work. Getting worked up about the way Python blocking works is about as
productive as getting worked up about the way English language spelling
works. There are countless other more useful ways to spend your time -
and certainly many more enjoyable ways.

>
>> Or think that perhaps other people in the world know better than you do
>> about how they want their language to work?
>
> And vice versa.

It's not your language, so there is no "vice versa".

>
>> Has it never occurred to you that the people behind a given
>> language - such as Python - considered various alternatives and decided
>> that making it the way they did was the best choice overall for the
>> language they wanted?
>
> Barring a few obvious stupidities, yes of course they were, and are, smart
> people.

When there are a number of smart, experienced and educated people
involved in the decisions, "obvious stupidities" are extremely unlikely.
That's the point of involving multiple people and gathering opinions
from many in the field.

There can be design decisions that don't suit /you/ - but they were not
designing a language for /you/. There can be design decisions that made
sense at the time, but turned out to be unwise in the end. Those are
not "obvious stupidities", even with 20/20 hindsight. And there can be
compromises where it is known that a decision is bad in at least some
ways, because it allows other better things to be done - again, not a
"stupidity" even if the one aspect in isolation looks bad.

Subject: Re: Python (was Re: I did not inhale)
From: vallor
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 14:01 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 14:01:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <vasjba$6l7d$2@dont-email.me>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me>
<87y14hd4bk.fsf@nosuchdomain.example.com> <valnei$35rt8$2@dont-email.me>
<87ikvlcs7i.fsf@nosuchdomain.example.com> <vamclm$3c4ke$1@dont-email.me>
<87ttf4bdcx.fsf@nosuchdomain.example.com> <vaoaak$3l470$3@dont-email.me>
<875xrkb2iq.fsf@nosuchdomain.example.com> <vapnu2$3v4l8$1@dont-email.me>
<vaquop$5ioe$2@dont-email.me> <87zfou9926.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 30 Aug 2024 16:01:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9be24c4b805c2be62372b2d3b9cd182b";
logging-data="218349"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+V9VjlmECTFxhoBhDFDejy"
User-Agent: Pan/0.160 (Toresk; 7830f38; Linux-6.11.0-rc5)
Cancel-Lock: sha1:LcxrSwkuTcbPP7Sncur7UDcRDSE=
X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9<Q#U*4QO)$l81M`{Q/n
XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ
View all headers

On Thu, 29 Aug 2024 16:57:21 -0700, Keith Thompson
<Keith.S.Thompson+u@gmail.com> wrote in
<87zfou9926.fsf@nosuchdomain.example.com>:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> [...]
>> Think about why you bother to indent code in languages where the
>> compiler ignores such indentation anyway: it means you are expressing
>> the structure of code in two different ways, one via statement
>> brackets, and the other via indentation. This redundancy aids in
>> understanding that the code does what you think it does.
>>
>> Python gets rid of this redundancy, by having the compiler take notice
>> of the whitespace and removing the statement bracketing symbols. So I
>> put it back, by adding statement bracketing symbols that the compiler
>> ignores.
>
> You might find Bython useful.
>
> https://github.com/mathialo/bython
>
> (I don't, but you might.)

Thank you for the pointer.

(Had been wondering if there was something like "ratfor
for python", and here it is. :) )

--
-v

Subject: Re: Python (was Re: I did not inhale)
From: Scott Lurndal
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 30 Aug 2024 14:33 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx12.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Python (was Re: I did not inhale)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me> <vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me> <vap7vq$3sr7b$1@dont-email.me> <vappl3$3v4l8$4@dont-email.me> <vaq8hk$1qbm$1@dont-email.me> <varc7h$b7bo$1@dont-email.me>
Lines: 10
Message-ID: <%KkAO.84918$%Go3.42944@fx12.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 30 Aug 2024 14:33:31 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 30 Aug 2024 14:33:31 GMT
X-Received-Bytes: 1441
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>On Thu, 29 Aug 2024 18:44:35 +0200, Janis Papanagnou wrote:
>
>> Vim is an editor that has the most simple and also very powerful
>> indenting for well structured data and programs I've yet seen. (Not
>> mentioning its equally powerful other editing facilities.)
>
>Vim is only good for text-editing, though

Again, L'D'O' is wrong.

Subject: Re: Python (was Re: I did not inhale)
From: John Ames
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 15:14 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 08:14:21 -0700
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <20240830081421.00006808@gmail.com>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me>
<vanrd8$3j0vv$1@dont-email.me>
<vantnp$3j94i$1@dont-email.me>
<vapp91$3v4l8$3@dont-email.me>
<20240829085246.00003ab5@gmail.com>
<vaqi38$33ga$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Aug 2024 17:14:25 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8d3152d7e4a09de5960c07a932fb7c3b";
logging-data="575010"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LaA7bv5KZTWL5aL8A1khyWEXzDWkzMfs="
Cancel-Lock: sha1:nK+zJnnOslbxBI7v1PHLKKTAuqk=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
View all headers

On Thu, 29 Aug 2024 21:27:36 +0200
David Brown <david.brown@hesbynett.no> wrote:

> /All/ languages, except perhaps Bart's private language that is only
> used by him, have their annoyances. I have worked at least a little
> with a fair number of languages, and I've never seen one that I
> thought was "perfect". But different people have different things
> that the like and dislike about any given language.
>
> So if you have the choice of which language to use (many programmers
> do not), you pick one that has more things you like for the task in
> question in comparison to the things you don't like.

Sure - but picking one that best suits your needs doesn't mean you
can't critique its annoyances/flaws. This team-sports mentality is just
weird.

> But it's important to understand that these are opinions - the
> designers of Python were /not/ stupid to have made the language that
> way. They just had different opinions from you, and the had a much
> better basis for forming those opinions than you or I.

Yeah, well, your opinion that my opinion is just, like, my opinion is
just, like, your opinion, man.

Subject: Re: Python (was Re: I did not inhale)
From: John Ames
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 15:28 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: commodorejohn@gmail.com (John Ames)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 08:28:35 -0700
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20240830082835.000008fa@gmail.com>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me>
<vanrd8$3j0vv$1@dont-email.me>
<vantnp$3j94i$1@dont-email.me>
<vapp91$3v4l8$3@dont-email.me>
<vaqucc$5ioe$1@dont-email.me>
<vas3tt$eij4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Aug 2024 17:28:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8d3152d7e4a09de5960c07a932fb7c3b";
logging-data="575010"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2eh2MElk3Rmjv6sDGfR5esbN8qnRd93M="
Cancel-Lock: sha1:LTwtc6tyIA+xhCX19mz4UabgjlI=
X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
View all headers

On Fri, 30 Aug 2024 11:38:05 +0200
David Brown <david.brown@hesbynett.no> wrote:

> Getting worked up about the way Python blocking works is about as
> productive as getting worked up about the way English language
> spelling works. There are countless other more useful ways to spend
> your time - and certainly many more enjoyable ways.

Some people actually enjoy arguing on the Internet, y'know.

> When there are a number of smart, experienced and educated people
> involved in the decisions, "obvious stupidities" are extremely
> unlikely. That's the point of involving multiple people and gathering
> opinions from many in the field.

You may consider it as "unlikely" as you wish, but the fact is that
literal whitespace has been considered Obviously Stupid in the computer-
programming world for so long that it was the subject of a joke re: JCL
in "Real Programmers Don't Use Pascal," published in 1983.

That's not to say that "considered Obviously Stupid" is the same thing
as "objectively wrong" - but if your argument is that all of this is on
equal footing as Just Opinions, discounting decades of established
opinion across the industry in preference to the opinions of the subset
of Python developers & advocates who believe in literal whitespace as
Unambiguously Good rather gives the lie to that.

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 16:42 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 18:42:33 +0200
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <vasspp$id3a$1@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <vannkg$3ig72$1@dont-email.me>
<vanrd8$3j0vv$1@dont-email.me> <vantnp$3j94i$1@dont-email.me>
<vapp91$3v4l8$3@dont-email.me> <20240829085246.00003ab5@gmail.com>
<vaqi38$33ga$1@dont-email.me> <20240830081421.00006808@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Aug 2024 18:42:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3b8d9008b438dc7a1af6ab394661d0db";
logging-data="603242"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iDYyNb6WXTP42vGpjcfssx0zLx9yJ33k="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:rJ9Ny0eVRIIt11AFpDzlfCWCshY=
Content-Language: en-GB
In-Reply-To: <20240830081421.00006808@gmail.com>
View all headers

On 30/08/2024 17:14, John Ames wrote:
> On Thu, 29 Aug 2024 21:27:36 +0200
> David Brown <david.brown@hesbynett.no> wrote:
>
>> /All/ languages, except perhaps Bart's private language that is only
>> used by him, have their annoyances. I have worked at least a little
>> with a fair number of languages, and I've never seen one that I
>> thought was "perfect". But different people have different things
>> that the like and dislike about any given language.
>>
>> So if you have the choice of which language to use (many programmers
>> do not), you pick one that has more things you like for the task in
>> question in comparison to the things you don't like.
>
> Sure - but picking one that best suits your needs doesn't mean you
> can't critique its annoyances/flaws. This team-sports mentality is just
> weird.

(I gather the politically correct response to that is "I'm not weird -
/you/ are weird" :-) )

There's a difference between critiquing something and saying the
language designers were stupid. I can say I prefer explicit blocking
delimiters. I can give reasons why I think those are better than
white-space based blocks. But to have any kind of useful discussion,
you need to be able to consider what advantages the alternatives have,
and think about why some people might have different opinions. Writing
"I get lost with white-space indentation and have to add lots of
comments - therefore the language is flawed and the designers made
stupid decisions" is not helpful critique - it's just ranting.

Of course you will find things you dislike about any language you use.
And discussing those things, and ways to mitigate their impact, is also
fine. It's the "this language is fundamentally flawed because /I/
dislike a particular aspect of it" attitude I disagree with.

>
>> But it's important to understand that these are opinions - the
>> designers of Python were /not/ stupid to have made the language that
>> way. They just had different opinions from you, and the had a much
>> better basis for forming those opinions than you or I.
>
> Yeah, well, your opinion that my opinion is just, like, my opinion is
> just, like, your opinion, man.
>

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 16:54 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 18:54:54 +0200
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <vastgu$id3a$2@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <vannkg$3ig72$1@dont-email.me>
<vanrd8$3j0vv$1@dont-email.me> <vantnp$3j94i$1@dont-email.me>
<vapp91$3v4l8$3@dont-email.me> <vaqucc$5ioe$1@dont-email.me>
<vas3tt$eij4$1@dont-email.me> <20240830082835.000008fa@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 30 Aug 2024 18:54:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3b8d9008b438dc7a1af6ab394661d0db";
logging-data="603242"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eLw4cVh+fwmkcq1Uz6dyDMvtHHeUJNv4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:/yz+04T4rgfQPE7t7I2a0jdXKlk=
Content-Language: en-GB
In-Reply-To: <20240830082835.000008fa@gmail.com>
View all headers

On 30/08/2024 17:28, John Ames wrote:
> On Fri, 30 Aug 2024 11:38:05 +0200
> David Brown <david.brown@hesbynett.no> wrote:
>
>> Getting worked up about the way Python blocking works is about as
>> productive as getting worked up about the way English language
>> spelling works. There are countless other more useful ways to spend
>> your time - and certainly many more enjoyable ways.
>
> Some people actually enjoy arguing on the Internet, y'know.

Up to a point, I agree. Where would the internet be without arguments?
Cat videos and porn, I suppose.

But sometimes I think discussions could be a little more informative and
a little less repetitive ranting. Occasionally it is also nice to learn
something new from the internet. (I actually learned from this thread
that Python 3 is better at checking for mixed tabs and spaces than
Python 2 was.)

>
>> When there are a number of smart, experienced and educated people
>> involved in the decisions, "obvious stupidities" are extremely
>> unlikely. That's the point of involving multiple people and gathering
>> opinions from many in the field.
>
> You may consider it as "unlikely" as you wish, but the fact is that
> literal whitespace has been considered Obviously Stupid in the computer-
> programming world for so long that it was the subject of a joke re: JCL
> in "Real Programmers Don't Use Pascal," published in 1983.
>
> That's not to say that "considered Obviously Stupid" is the same thing
> as "objectively wrong" - but if your argument is that all of this is on
> equal footing as Just Opinions, discounting decades of established
> opinion across the industry in preference to the opinions of the subset
> of Python developers & advocates who believe in literal whitespace as
> Unambiguously Good rather gives the lie to that.
>

Python is a hugely popular language, with whitespace for blocks. C, C++
and Java are hugely poplar languages with braces as delimiters. I don't
see how anyone can get an "established opinion" from that.

But to be fair, the worst case of significant whitespace /was/ obviously
stupid - that is makefiles treating tabs and spaces differently. The
original author of make said himself that it was a daft idea, but
unfortunately the utility took off in popularity so quickly that it
could not be rectified.

Subject: Re: Python (was Re: I did not inhale)
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 19:17 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 19:17:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <vat5sr$k5sk$1@dont-email.me>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me>
<vap7vq$3sr7b$1@dont-email.me> <vappl3$3v4l8$4@dont-email.me>
<vaq8hk$1qbm$1@dont-email.me>
<vaqij8$33ga$3@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Injection-Date: Fri, 30 Aug 2024 21:17:47 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2ab3fba7f4e6f348feb72eb73e18b126";
logging-data="661396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QXHNRuGx0rTnqYEVKhj/l"
Cancel-Lock: sha1:1XVTWp4AVqn/y3ya0ER19bcRNes=
View all headers

On Thu, 29 Aug 2024 21:36:08 +0200
David Brown <david.brown@hesbynett.no> gabbled:
>On 29/08/2024 18:44, Janis Papanagnou wrote:
>> On 29.08.2024 14:30, David Brown wrote:
>>> On 29/08/2024 09:28, Muttley@dastardlyhq.com wrote:
>>>> [...]
>>>
>>> Then don't use vim - use an editor that suits your needs.
>>
>> LOL. (You appear to be joking. - If not, continue reading...)
>>
>
>I was not joking.
>
>> But what makes you think that his needs are not covered by Vim?
>
>You seem to have missed the point - sorry if I was not clear.

The irony :)

Subject: Re: Python (was Re: I did not inhale)
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 19:20 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Muttley@dastardlyhq.com
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 19:20:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vat61a$k6tc$1@dont-email.me>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me>
<vanrd8$3j0vv$1@dont-email.me>
<vantnp$3j94i$1@dont-email.me>
<vapp91$3v4l8$3@dont-email.me>
<20240829085246.00003ab5@gmail.com>
<vaqi38$33ga$1@dont-email.me>
<20240830081421.00006808@gmail.com>
Content-Type: text/plain; charset=US-ASCII
Injection-Date: Fri, 30 Aug 2024 21:20:11 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2ab3fba7f4e6f348feb72eb73e18b126";
logging-data="662444"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SE8aZdP5aFDX43e7xtRUg"
Cancel-Lock: sha1:LmrOyZBZYZ9TC+1Cr04PswGim3M=
View all headers

On Fri, 30 Aug 2024 08:14:21 -0700
John Ames <commodorejohn@gmail.com> gabbled:
>On Thu, 29 Aug 2024 21:27:36 +0200
>David Brown <david.brown@hesbynett.no> wrote:
>
>> /All/ languages, except perhaps Bart's private language that is only
>> used by him, have their annoyances. I have worked at least a little
>> with a fair number of languages, and I've never seen one that I
>> thought was "perfect". But different people have different things
>> that the like and dislike about any given language.
>>
>> So if you have the choice of which language to use (many programmers
>> do not), you pick one that has more things you like for the task in
>> question in comparison to the things you don't like.
>
>Sure - but picking one that best suits your needs doesn't mean you
>can't critique its annoyances/flaws. This team-sports mentality is just
>weird.

Some insecure people feel an attack on their favourite language is some kind
of attack or slight against them personally. Its a pathetic and juvenile trait
that unfortunately is found a lot amongst IT types.

Subject: Re: Python (was Re: I did not inhale)
From: D
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: i2pn2 (i2pn.org)
Date: Fri, 30 Aug 2024 21:36 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: nospam@example.net (D)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 23:36:07 +0200
Organization: i2pn2 (i2pn.org)
Message-ID: <a43cb30b-795e-f5c9-a4aa-7c918e009dd0@example.net>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me> <vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me> <vap7vq$3sr7b$1@dont-email.me> <vappl3$3v4l8$4@dont-email.me> <vaq8hk$1qbm$1@dont-email.me> <varc7h$b7bo$1@dont-email.me>
<%KkAO.84918$%Go3.42944@fx12.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: i2pn2.org;
logging-data="294561"; mail-complaints-to="usenet@i2pn2.org";
posting-account="w/4CleFT0XZ6XfSuRJzIySLIA6ECskkHxKUAYDZM66M";
In-Reply-To: <%KkAO.84918$%Go3.42944@fx12.iad>
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

On Fri, 30 Aug 2024, Scott Lurndal wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>> On Thu, 29 Aug 2024 18:44:35 +0200, Janis Papanagnou wrote:
>>
>>> Vim is an editor that has the most simple and also very powerful
>>> indenting for well structured data and programs I've yet seen. (Not
>>> mentioning its equally powerful other editing facilities.)
>>
>> Vim is only good for text-editing, though
>
> Again, L'D'O' is wrong.
>

This is the truth! Nothing of value in his posts.

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 23:42 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 23:42:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vatld7$mhl0$1@dont-email.me>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me>
<vantnp$3j94i$1@dont-email.me> <vapp91$3v4l8$3@dont-email.me>
<vaqucc$5ioe$1@dont-email.me> <vas3tt$eij4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 31 Aug 2024 01:42:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="54904188b92803ec7b4c49292238a0a9";
logging-data="738976"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FyuogQqT/RGOA/S7qj6l7"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:WZRWruRVPCs4RRbYNxDDup8mH74=
View all headers

On Fri, 30 Aug 2024 11:38:05 +0200, David Brown wrote:

> You should work to improve the things you can, instead of
> wasting effort arguing with brick walls.

Which is exactly what I have been doing. You are just another of those
trying to dispute my techniques.

> It's not your language, so there is no "vice versa".

It’s open source. It’s *everybody*’s language.

>> Barring a few obvious stupidities, yes of course they were, and are,
>> smart people.
>
> When there are a number of smart, experienced and educated people
> involved in the decisions, "obvious stupidities" are extremely unlikely.

Now I know you haven’t used Python that much.

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 23:49 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 23:49:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <vatlqv$mhl0$2@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me> <87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me> <87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me> <875xrkb2iq.fsf@nosuchdomain.example.com>
<vaoibg$3m9tm$2@dont-email.me> <vapo6l$3v4l8$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 31 Aug 2024 01:49:51 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="54904188b92803ec7b4c49292238a0a9";
logging-data="738976"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+D8Pgv2WN8lxLti8E4AMM"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:YI1h/XntD+PjHVNmlOKCrmmtR+0=
View all headers

On Thu, 29 Aug 2024 14:05:41 +0200, David Brown wrote:

> ... put in so much extra
> crap and silliness that readers get caught up in that instead of
> noticing that most of the function is meaningless.

Interesting. Now you are trying to claim that, because you don’t
understand what the code does, that makes it somehow “meaningless”?

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Fri, 30 Aug 2024 23:52 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 23:52:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <vatlvc$mhl0$3@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me> <87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me> <87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me> <875xrkb2iq.fsf@nosuchdomain.example.com>
<vaoibg$3m9tm$2@dont-email.me> <87seuo9ikl.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 31 Aug 2024 01:52:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="54904188b92803ec7b4c49292238a0a9";
logging-data="738976"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OFPVeV1DZcrXfn9ruEXyb"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:S1GA9KrrZzi1AqB3Oqc4kJ6dp8k=
View all headers

On Wed, 28 Aug 2024 19:19:38 -0700, Keith Thompson wrote:

> My impression is that your unconventional style indicates a relative
> lack of experience in Python.

You think maybe I should practise by writing more Python code?

OK, how about your thoughts on comparing this

for attrname in obj.tag_attrs :
attr = getattr(obj, attrname)
if attr != None :
if isinstance(attr, enum.Enum) :
attr = attr.value
elif isinstance(attr, Type) :
attr = unparse_signature(attr)
elif not isinstance(attr, str) :
raise TypeError("unexpected attribute type %s for %s" % (type(attr).__name__, repr(attr)))
attrs.append("%s=%s" % (attrname, quote_xml_attr(attr)))
out.write(" " * indent + "<" + tag_name)

with this

for attrname in obj.tag_attrs :
attr = getattr(obj, attrname)
if attr != None :
if isinstance(attr, enum.Enum) :
attr = attr.value
elif isinstance(attr, Type) :
attr = unparse_signature(attr)
elif not isinstance(attr, str) :
raise TypeError("unexpected attribute type %s for %s" % (type(attr).__name__, repr(attr)))
attrs.append("%s=%s" % (attrname, quote_xml_attr(attr)))
out.write(" " * indent + "<" + tag_name)

Subject: Re: Python (was Re: I did not inhale)
From: Keith Thompson
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: None to speak of
Date: Sat, 31 Aug 2024 04:37 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 21:37:09 -0700
Organization: None to speak of
Lines: 44
Message-ID: <87ttf148ay.fsf@nosuchdomain.example.com>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me>
<87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me>
<87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me>
<87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me>
<875xrkb2iq.fsf@nosuchdomain.example.com>
<vaoibg$3m9tm$2@dont-email.me>
<87seuo9ikl.fsf@nosuchdomain.example.com>
<vatlvc$mhl0$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 31 Aug 2024 06:37:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="78f6e35217d9802ff674987bcdbe52ec";
logging-data="931453"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+80/evwMXGCGu0YsUIdScA"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:yBaTVxgHwJ+Ghbxqb9s+RTmtrS0=
sha1:o03aDOVQ+rhJQ2m3QxNiKUL9Zig=
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Wed, 28 Aug 2024 19:19:38 -0700, Keith Thompson wrote:
>> My impression is that your unconventional style indicates a relative
>> lack of experience in Python.
>
> You think maybe I should practise by writing more Python code?

And you snipped the part where I acknowledged that might be an invalid
conclusion. I have no opinion on what you should do.

> OK, how about your thoughts on comparing this
>
> for attrname in obj.tag_attrs :
> attr = getattr(obj, attrname)
> if attr != None :
> if isinstance(attr, enum.Enum) :
> attr = attr.value
> elif isinstance(attr, Type) :
> attr = unparse_signature(attr)
> elif not isinstance(attr, str) :
> raise TypeError("unexpected attribute type %s for %s" % (type(attr).__name__, repr(attr)))
> attrs.append("%s=%s" % (attrname, quote_xml_attr(attr)))
> out.write(" " * indent + "<" + tag_name)
>
> with this
>
> for attrname in obj.tag_attrs :
> attr = getattr(obj, attrname)
> if attr != None :
> if isinstance(attr, enum.Enum) :
> attr = attr.value
> elif isinstance(attr, Type) :
> attr = unparse_signature(attr)
> elif not isinstance(attr, str) :
> raise TypeError("unexpected attribute type %s for %s" % (type(attr).__name__, repr(attr)))
> attrs.append("%s=%s" % (attrname, quote_xml_attr(attr)))
> out.write(" " * indent + "<" + tag_name)

The difference is obvious: the second calls attrs.append() even if attr
is None. I don't know what point you're trying to make.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

Subject: Re: Python (was Re: I did not inhale)
From: Keith Thompson
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: None to speak of
Date: Sat, 31 Aug 2024 04:39 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Fri, 30 Aug 2024 21:39:15 -0700
Organization: None to speak of
Lines: 19
Message-ID: <87plpp487g.fsf@nosuchdomain.example.com>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me>
<87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me>
<87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me>
<87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me>
<875xrkb2iq.fsf@nosuchdomain.example.com>
<vaoibg$3m9tm$2@dont-email.me>
<87seuo9ikl.fsf@nosuchdomain.example.com>
<vatlvc$mhl0$3@dont-email.me>
<87ttf148ay.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 31 Aug 2024 06:39:18 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="78f6e35217d9802ff674987bcdbe52ec";
logging-data="931453"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lXGTPSrym9lJ2B51jVs5v"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:Afz9n8Pp9mL8ON5mExJKazWZ0G0=
sha1:6tRZ4Q8NSLTkOXjvFgAOlNT3ZQ0=
View all headers

Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>> On Wed, 28 Aug 2024 19:19:38 -0700, Keith Thompson wrote:
>>> My impression is that your unconventional style indicates a relative
>>> lack of experience in Python.
>>
>> You think maybe I should practise by writing more Python code?
>
> And you snipped the part where I acknowledged that might be an invalid
> conclusion. I have no opinion on what you should do.

Let me amend that slightly. I suggest that you'd be better off writing
idiomatic Python code, at least if you want to share that code with
others. You are of course under no obligation to follow my advice, and
I won't spend any more time trying to persuade you.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Sat, 31 Aug 2024 15:06 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Sat, 31 Aug 2024 17:06:05 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vavbgu$124lb$1@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me> <87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me> <87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me> <875xrkb2iq.fsf@nosuchdomain.example.com>
<vaoibg$3m9tm$2@dont-email.me> <vapo6l$3v4l8$2@dont-email.me>
<vatlqv$mhl0$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 31 Aug 2024 17:06:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3820a5a5a2d09da681b5b14bf37b4c3d";
logging-data="1118891"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yMZoQZZmiHKfIvYfbHKCIkssLYf67ejQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dRbA8Q6EE82zekI3QGH41LynzMI=
Content-Language: en-GB
In-Reply-To: <vatlqv$mhl0$2@dont-email.me>
View all headers

On 31/08/2024 01:49, Lawrence D'Oliveiro wrote:
> On Thu, 29 Aug 2024 14:05:41 +0200, David Brown wrote:
>
>> ... put in so much extra
>> crap and silliness that readers get caught up in that instead of
>> noticing that most of the function is meaningless.
>
> Interesting. Now you are trying to claim that, because you don’t
> understand what the code does, that makes it somehow “meaningless”?

I covered that in an earlier post. If you didn't bother reading it
earlier, why should I bother posting it again?

To be fair, it's possible that what you posted was only part of a real
function.

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 00:09 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Tue, 3 Sep 2024 00:09:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <vb5k3c$31gq9$7@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me> <87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me> <87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me> <875xrkb2iq.fsf@nosuchdomain.example.com>
<vaoibg$3m9tm$2@dont-email.me> <vapo6l$3v4l8$2@dont-email.me>
<vatlqv$mhl0$2@dont-email.me> <vavbgu$124lb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 03 Sep 2024 02:09:17 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6d8b6590145ff0d1f13101405f5f220c";
logging-data="3195721"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Co8xlE9nWJaMfbNNVNo24"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:WOHwADX+Zh9OD3+y6DxA7GkJzX0=
View all headers

On Sat, 31 Aug 2024 17:06:05 +0200, David Brown wrote:

> On 31/08/2024 01:49, Lawrence D'Oliveiro wrote:
>
>> Interesting. Now you are trying to claim that, because you don’t
>> understand what the code does, that makes it somehow “meaningless”?
>
> I covered that in an earlier post.

Maybe in your mind you thought you did. Nowhere in your comments on this
code did you say so, that I can find.

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 08:46 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Tue, 3 Sep 2024 10:46:55 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <vb6idv$396lj$2@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me> <87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me> <87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me> <875xrkb2iq.fsf@nosuchdomain.example.com>
<vaoibg$3m9tm$2@dont-email.me> <vapo6l$3v4l8$2@dont-email.me>
<vatlqv$mhl0$2@dont-email.me> <vavbgu$124lb$1@dont-email.me>
<vb5k3c$31gq9$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 03 Sep 2024 10:46:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="93d7d6b8e3b40fe75b60c4526d162769";
logging-data="3447475"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/I77Bmxsun6oyujNVW+rYZVrz1hLd+4bQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:1fFb5ydVGjiXwM8MIE31oDfGxRU=
In-Reply-To: <vb5k3c$31gq9$7@dont-email.me>
Content-Language: en-GB
View all headers

On 03/09/2024 02:09, Lawrence D'Oliveiro wrote:
> On Sat, 31 Aug 2024 17:06:05 +0200, David Brown wrote:
>
>> On 31/08/2024 01:49, Lawrence D'Oliveiro wrote:
>>
>>> Interesting. Now you are trying to claim that, because you don’t
>>> understand what the code does, that makes it somehow “meaningless”?
>>
>> I covered that in an earlier post.
>
> Maybe in your mind you thought you did. Nowhere in your comments on this
> code did you say so, that I can find.

To be accurate, the code in question was not actually /meaningless/ - it
was merely pointlessly complex, inefficient and unclear.

You wrote:

def register_additional_standard(self, **kwargs) :
for key in kwargs :
if kwargs[key] :
if key == "managed_objects" :
# ....
else :
raise TypeError("unrecognized argument keyword
“%s”" % key)

I changed it in a re-write to:

def register_additional_standard(self, managed_objects) :
if managed_objects :
# ....

That change, I think, was lost in the discussions about bizarre
formatting practices.

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 21:56 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Tue, 3 Sep 2024 21:56:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <vb80mk$3g6hb$3@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me> <87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me> <87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me> <875xrkb2iq.fsf@nosuchdomain.example.com>
<vaoibg$3m9tm$2@dont-email.me> <vapo6l$3v4l8$2@dont-email.me>
<vatlqv$mhl0$2@dont-email.me> <vavbgu$124lb$1@dont-email.me>
<vb5k3c$31gq9$7@dont-email.me> <vb6idv$396lj$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 03 Sep 2024 23:56:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6d8b6590145ff0d1f13101405f5f220c";
logging-data="3676715"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19o9gPt5RQnEvNUIX1Ww5oj"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:55Xn9FOB4iwecRbWwJ2joGsxBAE=
View all headers

On Tue, 3 Sep 2024 10:46:55 +0200, David Brown wrote:

> I changed it in a re-write to:
>
> def register_additional_standard(self, managed_objects) :
> if managed_objects :
> # ....

My original was meant with future extensibility in mind. That was made
clear in the docstring. You *did* read the docstring, didn’t you?

Subject: Re: Python (was Re: I did not inhale)
From: David Brown
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Wed, 4 Sep 2024 07:30 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Wed, 4 Sep 2024 09:30:39 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <vb92av$3oacb$1@dont-email.me>
References: <uu54la$3su5b$6@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> <20240826155113.000005ba@gmail.com>
<wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me>
<valgpu$34s18$1@dont-email.me> <87y14hd4bk.fsf@nosuchdomain.example.com>
<valnei$35rt8$2@dont-email.me> <87ikvlcs7i.fsf@nosuchdomain.example.com>
<vamclm$3c4ke$1@dont-email.me> <87ttf4bdcx.fsf@nosuchdomain.example.com>
<vaoaak$3l470$3@dont-email.me> <875xrkb2iq.fsf@nosuchdomain.example.com>
<vaoibg$3m9tm$2@dont-email.me> <vapo6l$3v4l8$2@dont-email.me>
<vatlqv$mhl0$2@dont-email.me> <vavbgu$124lb$1@dont-email.me>
<vb5k3c$31gq9$7@dont-email.me> <vb6idv$396lj$2@dont-email.me>
<vb80mk$3g6hb$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 04 Sep 2024 09:30:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="0366692407b62e2f3ab0bc1ba1697c81";
logging-data="3942795"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198tNTWQPmKamtQPTVVKL4kCQi+sx15LTE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:2LEtrNy8UUAkTpZZbwIewpNDgzI=
Content-Language: en-GB
In-Reply-To: <vb80mk$3g6hb$3@dont-email.me>
View all headers

On 03/09/2024 23:56, Lawrence D'Oliveiro wrote:
> On Tue, 3 Sep 2024 10:46:55 +0200, David Brown wrote:
>
>> I changed it in a re-write to:
>>
>> def register_additional_standard(self, managed_objects) :
>> if managed_objects :
>> # ....
>
> My original was meant with future extensibility in mind. That was made
> clear in the docstring. You *did* read the docstring, didn’t you?

Even if it was intended to be extendable, it would still be a /very/
silly way to write the code.

Subject: Re: Python (was Re: I did not inhale)
From: candycanearter07
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: the-candyden-of-code
Date: Sat, 7 Sep 2024 18:30 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Sat, 7 Sep 2024 18:30:03 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 44
Message-ID: <slrnvdp6fp.1s5hi.candycanearter07@candydeb.host.invalid>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me>
<vantnp$3j94i$1@dont-email.me> <vapp91$3v4l8$3@dont-email.me>
<vaqucc$5ioe$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 07 Sep 2024 20:30:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b640cdd4c5fc632cfffdc5cd9571c38f";
logging-data="1561300"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KhH3SfksRILqHWqPt/rt6SwwP/tiOcdAjvqL/bvpvUQ=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:kQFeFV1KbkKufu785E0Hu8x8uJM=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 22:57 this Thursday (GMT):
> On Thu, 29 Aug 2024 14:24:01 +0200, David Brown wrote:
>
>> def foo(a, b, c) :
>> if a :
>> if b :
>> if c :
>> doThis()
>>
>> That looks unfinished to me. So I will add a "return" at the end (with
>> a single tab indent, in this case).
>
> A redundant “return” ... kind of like my redundant “#end” comments, except
> yours work in a more restricted set of places ...
>
>> Don't you ever just accept that a language is the way it is, and it is
>> perfectly useable that way?
>
> Of course not.
>
>> Or think that perhaps other people in the world know better than you do
>> about how they want their language to work?
>
> And vice versa.
>
>> Has it never occurred to you that the people behind a given
>> language - such as Python - considered various alternatives and decided
>> that making it the way they did was the best choice overall for the
>> language they wanted?
>
> Barring a few obvious stupidities, yes of course they were, and are, smart
> people.

Subjectively, I prefer early returns over nested ifs:

def foo(a, b, c):
if !a: return
if !b: return
if !c: return

doThis()
--
user <candycane> is generated from /dev/urandom

Subject: Re: Python (was Re: I did not inhale)
From: Lawrence D'Oliv
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Sat, 7 Sep 2024 22:48 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Sat, 7 Sep 2024 22:48:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <vbil7a$1j26j$2@dont-email.me>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me>
<vantnp$3j94i$1@dont-email.me> <vapp91$3v4l8$3@dont-email.me>
<vaqucc$5ioe$1@dont-email.me>
<slrnvdp6fp.1s5hi.candycanearter07@candydeb.host.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 08 Sep 2024 00:48:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5b47ecd330ac087ccb2ea7289cdcbed3";
logging-data="1673427"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ILwn5i5yTHLi1kWEWdk9w"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:w6ad26AAUps2I961zYLSTmxzPog=
View all headers

On Sat, 7 Sep 2024 18:30:03 -0000 (UTC), candycanearter07 wrote:

> Subjectively, I prefer early returns over nested ifs:

Nested ifs nest, early returns don’t.

Subject: Re: Python (was Re: I did not inhale)
From: Janis Papanagnou
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Sat, 14 Sep 2024 07:59 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Sat, 14 Sep 2024 09:59:46 +0200
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <vc3fpk$1c68s$1@dont-email.me>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me>
<vap7vq$3sr7b$1@dont-email.me> <vappl3$3v4l8$4@dont-email.me>
<vaq8hk$1qbm$1@dont-email.me> <vaqij8$33ga$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 14 Sep 2024 09:59:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="dc3b97d43456dc5dd646785e778fa81e";
logging-data="1448220"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1852sS509AsweXZPyB34uh3"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:2/AktVy+dwfrfrZkrJwwIqEEG3Q=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <vaqij8$33ga$3@dont-email.me>
View all headers

On 29.08.2024 21:36, David Brown wrote:
> On 29/08/2024 18:44, Janis Papanagnou wrote:
>> On 29.08.2024 14:30, David Brown wrote:
>>> On 29/08/2024 09:28, Muttley@dastardlyhq.com wrote:
>>>> [...]
>>>
>>> Then don't use vim - use an editor that suits your needs.
>> [...]
>
>> But what makes you think that his needs are not covered by Vim?
>
> You seem to have missed the point - sorry if I was not clear.
>
> He complained that he didn't want to learn complicated macros in Vim
> just to be able to indent or un-indent lines of code. The solution is
> obvious - he should use an editor other than Vim.

This is not what I'd call a solution. I'd call it elusion; and in both
senses - if he didn't use his editor for that space-indenting because
he doesn't know how to do it he could look that up, but it is not any
issue to do that, only more laborious than indenting brace structures,
and the suggestion to switch to another tool is also elusive because
it doesn't address the issue (he would still have to learn how to do
it in any other tool). - But that was not the point.

>
> He could, of course, learn how to use Vim. It's a perfectly good editor
> with a lot of features. [...]

The point was about language design and (well known) problems with a
design that uses white-space for semantical purposes. That the brace
structures can usually be edited in better, simpler ways (beyond also
providing safety etc. using a more sophisticated designed language).

>
> There are more than enough decent editors to choose from, that cover the
> basic needs of programmers. Some people use one editor for everything,
> others use a range for different purposes - whatever suits you. But it
> is pretty absurd to complain that it is difficult to indent code just
> because you (i.e., Muttley) think it is hard to do in one particular
> editor.

As said; it was about "the language was designed properly"[Muttley].
And saying that switching the editor would solve something here is
just missing the point.

You can (also in Vim) write macros, as you correctly imply, or do
all the things that you can do with "other tools" (but only equally
laborious as in these other tools) as I already said. You can also
(for that specific IMO mis-designed language) enable "folding" (by
spaces) in Vim to not have to write macros (and not littering the
standard editor environment) that makes it comparably simply to do
the indentation more comfortably with less keystrokes. But nothing
beats the editing of parenthesized structures. (And doesn't change
any language mis-design.) YMMV.

Janis

Subject: Re: Python (was Re: I did not inhale)
From: Janis Papanagnou
Newsgroups: comp.unix.shell, comp.unix.programmer, comp.lang.misc
Organization: A noiseless patient Spider
Date: Sat, 14 Sep 2024 08:06 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Sat, 14 Sep 2024 10:06:12 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <vc3g5l$1c8v8$1@dont-email.me>
References: <uu54la$3su5b$6@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>
<20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk>
<vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me>
<vannkg$3ig72$1@dont-email.me> <vanrd8$3j0vv$1@dont-email.me>
<vap7vq$3sr7b$1@dont-email.me> <vappl3$3v4l8$4@dont-email.me>
<vaq8hk$1qbm$1@dont-email.me> <varc7h$b7bo$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 14 Sep 2024 10:06:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="83fb71d9fb6fc094f5d853bc143f22aa";
logging-data="1450984"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18y4PM9X7YlxiJXFcnu3iAl"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:uFxSusCWHdCStlYsTknZJ019pDQ=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <varc7h$b7bo$1@dont-email.me>
View all headers

On 30.08.2024 04:53, Lawrence D'Oliveiro wrote:
> On Thu, 29 Aug 2024 18:44:35 +0200, Janis Papanagnou wrote:
>
>> Vim is an editor that has the most simple and also very powerful
>> indenting for well structured data and programs I've yet seen. (Not
>> mentioning its equally powerful other editing facilities.)
>
> Vim is only good for text-editing, though.

"Only"? - Yes, Vim is a text-editor. (With only few functions beyond.)
And it does that in an excellent most efficient way I've not yet seen
in any other text editor. (Exactly what I need for universal editing
of any text. YMMV.)

> It assumes a file is split into
> lines. Emacs makes no such assumption, and can also edit non-text files.

You have obviously no clue.

Janis

Pages:12345678910

rocksolid light 0.9.8
clearnet tor