Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Kill Ugly Radio -- Frank Zappa


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?Jen Kris

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

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: jenkris@tutanota.com (Jen Kris)
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 16:47:26 +0200 (CEST)
Lines: 35
Message-ID: <mailman.2411.1679928448.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>
<NRYXRZv--3-9@tutanota.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de IUqb/z9FEMP6tnR0JU9oNAVvWHYoH8cdZQGwyLpi7uMA==
Return-Path: <jenkris@tutanota.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=tutanota.com header.i=@tutanota.com header.b=Eb69dIPR;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.020
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'mar': 0.07; '27,': 0.09;
'cc:addr:python-list': 0.09; 'studying': 0.09; 'subject:class':
0.09; 'test,': 0.09; 'cc:no real name:2**0': 0.14; 'url:mailman':
0.15; 'classes,': 0.16; 'languages.': 0.16; 'mention.': 0.16;
'subject:does': 0.16; 'to:name:mats wichmann': 0.16; 'wrote:':
0.16; 'python': 0.16; 'cc:addr:python.org': 0.20; 'subject:How':
0.23; 'received:de': 0.23; "i'd": 0.24; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25;
'classes': 0.26; 'url-ip:188/8': 0.31; 'everyone': 0.32;
'question': 0.32; 'answers': 0.32; 'python-list': 0.32;
"wouldn't": 0.32; 'received:192.168.1': 0.32; 'but': 0.32; 'header
:In-Reply-To:1': 0.34; 'trying': 0.35; 'question.': 0.35; 'class':
0.37; 'received:192.168': 0.37; 'thanks': 0.38; 'quite': 0.39;
'including': 0.60; 'today,': 0.62; 'limited': 0.62; 'your': 0.64;
'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; q=dns/txt; c=relaxed/relaxed; t=1679928446;
s=s1; d=tutanota.com;
h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender;
bh=Ro/45yvABciYT6CcCHlCdG/4vGTFNPCpmTwES9O4HLM=;
b=Eb69dIPRQGgjrCxHxV/QYo8zSE9ywlVBqU6jJ86NwEez46R5QHgJ3zT2rlAeBdUl
+YLT1GdSySOsVsN1JMXmAux8EdaR5RBnK96dAPZkXblrq19j4OUyRQaxJWEmpnB6KY1
eMmzZjb8T6xtsfhkCVwsLAQRghahBJ3acOpELQv6MiQY5VoL0/btV+Zif3sb46enNtw
30XAcTJ3yGTGQt6TOucvW1N8j7TpdqH+wzBw8qfXVkRK3RCrXWS/2o3KUsfhe8m5gji
uHN1sL0Sh/wKGzKxCxhRJDtRVR4s1T1tbOOrLPjxwo+hoqligVOyJg/2csI0F8UsQkt
o4OiDKM0MA==
In-Reply-To: <b99bc7cf-5a6c-eb07-217e-d37305749f68@wichmann.us>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
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: <NRYXRZv--3-9@tutanota.com>
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>
<b99bc7cf-5a6c-eb07-217e-d37305749f68@wichmann.us>
 by: Jen Kris - Mon, 27 Mar 2023 14:47 UTC

Thanks to everyone who answered this question.  Your answers have helped a lot. 

Jen

Mar 27, 2023, 14:12 by mats@wichmann.us:

> 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.
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>


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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor