Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"You shouldn't make my toaster angry." -- Household security explained in "Johnny Quest"


devel / comp.lang.python / Re: Are these good ideas?

SubjectAuthor
o Re: Are these good ideas?Chris Angelico

1
Re: Are these good ideas?

<mailman.987.1668465973.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=20384&group=comp.lang.python#20384

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Are these good ideas?
Date: Tue, 15 Nov 2022 09:46:00 +1100
Lines: 20
Message-ID: <mailman.987.1668465973.20444.python-list@python.org>
References: <d383df7e-c11e-ffc5-5f71-1b096b8af9e7@tompassin.net>
<1726FA55-0D24-45DD-89C5-12E792626931@barrys-emacs.org>
<CAPTjJmrQYjBNb46FQXgwQvD_HM-YM34hKMN6gq6FjM_MqOL7Vg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de SceD+zmQ5LX1z0yVhba8UAguRVxdt2nZeMeH17oeFrtw==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=paYWuiT8;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.012
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '2022': 0.05; 'parameter':
0.05; 'debug': 0.07; '2022,': 0.16; 'barry': 0.16; 'chrisa': 0.16;
'dict': 0.16; 'enough,': 0.16; 'from:addr:rosuav': 0.16;
'from:name:chris angelico': 0.16; 'received:209.85.218': 0.16;
'wrote:': 0.16; 'values': 0.17; 'tue,': 0.19; 'to:addr:python-
list': 0.20; 'code': 0.23; 'run': 0.23; 'to:name:python': 0.32;
'message-id:@mail.gmail.com': 0.32; 'but': 0.32; 'header:In-Reply-
To:1': 0.34; 'received:google.com': 0.34; 'from:addr:gmail.com':
0.35; 'subject:ideas': 0.36; 'received:209.85': 0.37; 'class':
0.37; 'could': 0.38; 'received:209': 0.39; 'use': 0.39; 'methods':
0.39; 'reasonable': 0.62; 'your': 0.64; 'worked': 0.67; 'easy':
0.74; 'subject:good': 0.76; 'subject:these': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=j1a15BnWUu0L/NL7RZjhyMRXZSk0soujcWMsckRnTnU=;
b=paYWuiT8OTvkMuqOmWdyipNlLqk4rMWS3BRCBLB1VljXpIY47+UXHVygzlERD2HmFC
EqqEOG5V6z0FVnBJerBQ8NhKl6cCqzWrJ/fbVR/a/vBf4uW9AEYV+pjXf0rNSs7kbYOl
kn2Fn7WH0TStS5mLVYjQbcl784yCCtoHNXAjoKy6FAN8o2TEVG2rr1g0fzNmYK+iEJxD
5t01efbwyq6aysvVGSlK/RF13cqX9uJIVWTjuGoRL4dGhxtjSeGlJpabVCzFsE//mzKD
hjbuMMHYCejdGlqq6YRwUynR5ubCFJ2l2byCIzBJyBQrzbvIEsPs/OGVlLBzjbbOd0dP
ZBmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=j1a15BnWUu0L/NL7RZjhyMRXZSk0soujcWMsckRnTnU=;
b=yyKEIR6wA6aEItZc1TeYM9YBwCA8DIJ5G0QmLbPqM5WESB7iIfIfu9Yzkjz8EMK6pE
+m96Y9MHnuGKenGi60yac/14hrznZtc+i+KMZFv97bgWvKmyw2XhDSVM8+dqLxy12s88
IQ7nLkMB4nFhEciU5LrjTLezrXd3r+JK6+2epJMVOj0yD3KV56Rm72mJLR1rWIcXxVyh
GiYsSglTOli6o3DisNPmrBpgXZIMvtvYzjWSknhLEpbO3wqHSa1PYIPhdWqhp5H7vILs
Df6YkJ2J+es1K2ZQiUzstT3rqW914oxzpu8J2XGx14fJ3LUjSBIxb8uARRmHbQOGPNpJ
AMzg==
X-Gm-Message-State: ANoB5pnXUTS4B8kEKf7mgOmJqou9XiJeUoLqWVTRqF3Lt/vgC816eEOo
glXNXw3NNwuwUo7D3c+CfJWG55nLzZSFO7NbOgVGln3Q
X-Google-Smtp-Source: AA0mqf6vPtocNoUL2B2VOORteRkqpDSQ4rRkl7cjVa5syzPBIvXhrV6bE5/hpYROXBpNf+Ni5wcPK+1Tl9OJZqgeSK4=
X-Received: by 2002:a17:907:11c7:b0:7ad:821f:a3e5 with SMTP id
va7-20020a17090711c700b007ad821fa3e5mr11567448ejb.554.1668465971918; Mon, 14
Nov 2022 14:46:11 -0800 (PST)
In-Reply-To: <1726FA55-0D24-45DD-89C5-12E792626931@barrys-emacs.org>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmrQYjBNb46FQXgwQvD_HM-YM34hKMN6gq6FjM_MqOL7Vg@mail.gmail.com>
X-Mailman-Original-References: <d383df7e-c11e-ffc5-5f71-1b096b8af9e7@tompassin.net>
<1726FA55-0D24-45DD-89C5-12E792626931@barrys-emacs.org>
 by: Chris Angelico - Mon, 14 Nov 2022 22:46 UTC

On Tue, 15 Nov 2022 at 09:38, Barry <barry@barrys-emacs.org> wrote:
>
>
>
> > On 14 Nov 2022, at 22:06, Thomas Passin <list1@tompassin.net> wrote:
> >
> > For parameter passing like your #2, I have packaged them into a dictionary and passed that around. It was easy enough, and worked well.
> >
> I used to use a dict but having been burnt with issues now create a class..
>
> With a class you can add accessor methods that allow you to run debug code as values are changed. Also you can check that values being set are spelt correctly, have reasonable values etc.
>

TBH you could add accessor methods to a dict just as easily

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor