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: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.advocacy Subject: Re: Why Python When There Is Perl? Date: 22 Mar 2024 01:46:48 GMT Lines: 17 Message-ID: References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net BDCh4BM+SsVW+NZKyERZQwpiZwUEbp3cE+Hf49/ft91dH6kzy1 Cancel-Lock: sha1:arD4AeaHXiv3Qmf1k8x3PGHSCYw= sha256:GEcqvmZcN4ua//IV5+acGIulSWuHfo4LW+rREQPt4Gk= User-Agent: Pan/0.149 (Bellevue; 4c157ba) Bytes: 1647 On Thu, 21 Mar 2024 06:04:13 -0000 (UTC), Lawrence D'Oliveiro wrote: > On 21 Mar 2024 05:36:18 GMT, rbowman wrote: > >> I'm looking at some C code using the OpenSSL library to connect to a >> host/port, do a HTTPS transaction. and return the result. There's a >> generous amout of error checking and handling and it's 84 lines rather >> than 1. > > You can do it in Python, leave most of the error checking to the default > settings, and end up with maybe a dozen lines of code. Yes you can, but my point was somebody else did all the grunt work to allow you to do it in a few lines of Python. TANSTAAFL. The further point is after you've done it once in C you now have a file or library that allows you to do the same in a few lines of C unless you insist on reinventing the wheel.