Deutsch   English   Français   Italiano  
<utgikt$21nsq$1@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.linux.advocacy
Subject: Re: Why Python When There Is Perl?
Date: Thu, 21 Mar 2024 06:04:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <utgikt$21nsq$1@dont-email.me>
References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com>
	<utd86u$1ipcj$1@solani.org> <utfo33$1o6mu$3@dont-email.me>
	<l61vaiFn16lU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Mar 2024 06:04:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="badb6633f042ee08dd03f65d8f49603e";
	logging-data="2154394"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/rngyL07f0hfRLO3ZPv0Oh"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:OeS3d/l4fdVXgW3DPl3oxvhWpDQ=
Bytes: 2017

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.

> The sniipets aren't long but he goes into list comprehension,
> decorators, some of the more obscure dunders, setting up classes with
> class variables,
> instance variables, and static functions using decorators, why you might
> want to do so, and how they work.

Does he mention descriptors? They are rather key to understanding how 
instance/class/static method dispatching works (and properties).

Does he talk about metaclasses? There is one use of them in the standard 
library (that I’m aware of), and I recently came up with another one.