Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <wwva5gykuab.fsf@LkoBDZeT.terraraq.uk>
Deutsch   English   Français   Italiano  
<wwva5gykuab.fsf@LkoBDZeT.terraraq.uk>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!news.gegeweb.eu!gegeweb.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: Richard Kettlewell <invalid@invalid.invalid>
Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc
Subject: Re: Python (was Re: I did not inhale)
Date: Tue, 27 Aug 2024 13:46:36 +0100
Organization: terraraq NNTP server
Message-ID: <wwva5gykuab.fsf@LkoBDZeT.terraraq.uk>
References: <uu54la$3su5b$6@dont-email.me> <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>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
	logging-data="32831"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:1Xqdwo+YBgobXo7EgTpM3SOUqKQ=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
     F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
     +r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
Bytes: 4312
Lines: 50

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/