Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Programming is an unnatural act.


devel / comp.lang.python / Re: How does a method of a subclass become a method of the base class?

SubjectAuthor
o Re: How does a method of a subclass become a method of the base class?Mats Wichmann

1
Re: How does a method of a subclass become a method of the base class?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: mat...@wichmann.us (Mats Wichmann)
Newsgroups: comp.lang.python
Subject: Re: How does a method of a subclass become a method of the base class?
Date: Mon, 27 Mar 2023 08:08:44 -0600
Lines: 21
Message-ID: <mailman.2410.1679926139.20444.python-list@python.org>
References: <NRU0CaG--3-9@tutanota.com>
<20230326184825.vjb5zwhi3elrfxsw@hjp.at> <NRUchKZ--3-9@tutanota.com>
<ZCDKsEKH4+W/g3lL@cskk.homeip.net> <NRVKuYg--7-9@tutanota.com>
<b99bc7cf-5a6c-eb07-217e-d37305749f68@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de aBk4GWu2wdmnYqeaJDuwYgBqBvGYrkfCJGxw2od3ElzA==
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=pobox.com header.i=@pobox.com header.b=aYpvPQJu;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.097
X-Spam-Evidence: '*H*': 0.81; '*S*': 0.00; 'studying': 0.09;
'subject:class': 0.09; 'test,': 0.09; 'received:173': 0.13;
'classes,': 0.16; 'languages.': 0.16; 'mention.': 0.16;
'subject:does': 0.16; 'wrote:': 0.16; 'python': 0.16; 'to:addr
:python-list': 0.20; 'subject:How': 0.23; "i'd": 0.24; 'classes':
0.26; 'header:User-Agent:1': 0.30; 'question': 0.32; 'answers':
0.32; 'python-list': 0.32; "wouldn't": 0.32; 'but': 0.32; 'header
:In-Reply-To:1': 0.34; 'trying': 0.35; 'class': 0.37;
'received:192.168': 0.37; 'quite': 0.39; 'including': 0.60;
'today,': 0.62; 'limited': 0.62; 'look': 0.65; 'worked': 0.67;
'piece': 0.69; 'subject:method': 0.69; 'yours,': 0.76; 'advise':
0.78; 'lightbulb': 0.84; 'lot.': 0.84; 'subject: \n ': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
:date:mime-version:subject:to:references:from:in-reply-to
:content-type:content-transfer-encoding; s=sasl; bh=aaWzn5rZ/BwA
KN0HzgDDMl+Au3skBtdtV3ka+IWa+7g=; b=aYpvPQJuiPppUxuczWouDI5HjGbB
pwBGbDhy824UyirKqMU3MAKUXB2OI9OxuGm1Az37g0o1eqc8TYbF29OpBLW/DK5X
KAZ0KjNTvCdWb/AqAZ9hlGlxmHz7VY/+IyRbmULAGM36wyehMs8zi/5y9PD8WSDa
HGWY/L9Xxd5RZnI=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
h=message-id:date:mime-version:subject:to:references:from:in-reply-to:content-type:content-transfer-encoding;
s=2018-07.pbsmtp; bh=jG8e3R3Clx9LbfUKOWRBg7RjJRQ25ZQHw2aw33r+DKg=;
b=IgZmGp2lBXDQzuG7Tfs6Srt6YbfdYcXugZhTiNJiUsfyAxVFUoH/7r7R9Zq2SjMUgfPHWhBj9InzdzxgxIpdEKAcZBWW4Hth67oaKpQi2XvKn81Jb7a2YBXu5XVQfOnU9RTa0K78+zQiqIDEEAWBC7HTJlnnN0xfJ/TeG/qnMCk=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Content-Language: en-US
In-Reply-To: <NRVKuYg--7-9@tutanota.com>
X-Pobox-Relay-ID: E3A41094-CCA8-11ED-B5C0-C2DA088D43B2-81526775!pb-smtp20.pobox.com
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: <b99bc7cf-5a6c-eb07-217e-d37305749f68@wichmann.us>
X-Mailman-Original-References: <NRU0CaG--3-9@tutanota.com>
<20230326184825.vjb5zwhi3elrfxsw@hjp.at> <NRUchKZ--3-9@tutanota.com>
<ZCDKsEKH4+W/g3lL@cskk.homeip.net> <NRVKuYg--7-9@tutanota.com>
 by: Mats Wichmann - Mon, 27 Mar 2023 14:08 UTC

On 3/26/23 17:53, Jen Kris via Python-list wrote:

> I’m asking all these question because I have worked in a procedural style for many years, with class work limited to only simple classes, but now I’m studying classes in more depth. The three answers I have received today, including yours, have helped a lot.

Classes in Python don't work quite like they do in many other languages.

You may find a lightbulb if you listen to Raymond Hettinger talk about them:

https://dailytechvideo.com/raymond-hettinger-pythons-class-development-toolkit/

I'd also advise that benchmarks often do very strange things to set up
the scenario they're trying to test, a benchmark sure wouldn't be my
first place to look in learning a new piece of Python - I don't know if
it was the first place, but thought this was worth a mention.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor