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 connectionsPath: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 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:
References:
<20240826083330.00004760@gmail.com>
<20240826155113.000005ba@gmail.com>
<87y14hd4bk.fsf@nosuchdomain.example.com>
<87ikvlcs7i.fsf@nosuchdomain.example.com>
<87ttf4bdcx.fsf@nosuchdomain.example.com>
<875xrkb2iq.fsf@nosuchdomain.example.com>
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:
Content-Language: en-GB
Bytes: 3154
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.