Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Those who can, do; those who can't, simulate.


devel / comp.lang.python / Re: Unexpected Inheritance Problem

SubjectAuthor
o Re: Unexpected Inheritance ProblemGrant Edwards

1
Re: Unexpected Inheritance Problem

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: grant.b.edwards@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: Unexpected Inheritance Problem
Date: Thu, 20 May 2021 18:53:19 -0000 (UTC)
Lines: 27
Message-ID: <mailman.259.1621537054.3087.python-list@python.org>
References: <be692bef-25da-3ac7-4158-45b78842218b@Damon-Family.org>
<s852rh$rqa$1@ciao.gmane.io>
<37a37ae4-a6ce-aa54-29f0-85ccf52a369a@Damon-Family.org>
<7d9f45b2-8f24-0282-0b9e-5af2ff0683fe@wichmann.us>
<s86b6u$7cr$1@ciao.gmane.io>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de XQygq52kQ3IuPk3dluPnYgMDA7XCNr/+Y0DkUHLVMU8A==
Return-Path: <python-python-list@m.gmane-mx.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'def': 0.04; 'damon': 0.09;
'fonts': 0.09; 'message-id:@ciao.gmane.io': 0.09;
'received:ciao.gmane.io': 0.09; 'received:gmane.io': 0.09;
'received:list': 0.09; '>>>>': 0.16; 'from:addr:grant.b.edwards':
0.16; 'from:name:grant edwards': 0.16; 'mats': 0.16;
'received:116.202': 0.16; 'received:116.202.254': 0.16;
'received:116.202.254.214': 0.16; 'repeated': 0.16; 'wichmann':
0.16; 'wrote:': 0.16; 'grant': 0.17; 'skip:_ 10': 0.23; 'to:addr
:python-list': 0.23; '>>>': 0.26; 'wrong': 0.27; "didn't": 0.29;
'header:User-Agent:1': 0.31; 'seem': 0.31; 'am,': 0.31; 'class':
0.33; 'yes,': 0.35; 'from:addr:gmail.com': 0.35; 'display': 0.37;
'hard': 0.38; "it's": 0.38; 'use': 0.38; 'source': 0.38; 'does':
0.38; 'skip:e 10': 0.60; 'received:116': 0.71; 'head': 0.74;
'inherited': 0.84; 'signature.': 0.84;
'\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0': 0.84
X-Injected-Via-Gmane: http://gmane.org/
User-Agent: slrn/1.0.3 (Linux)
X-Mailman-Approved-At: Thu, 20 May 2021 14:57:34 -0400
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
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: <s86b6u$7cr$1@ciao.gmane.io>
X-Mailman-Original-References: <be692bef-25da-3ac7-4158-45b78842218b@Damon-Family.org>
<s852rh$rqa$1@ciao.gmane.io>
<37a37ae4-a6ce-aa54-29f0-85ccf52a369a@Damon-Family.org>
<7d9f45b2-8f24-0282-0b9e-5af2ff0683fe@wichmann.us>
 by: Grant Edwards - Thu, 20 May 2021 18:53 UTC

On 2021-05-20, Mats Wichmann <mats@wichmann.us> wrote:
> On 5/20/21 4:54 AM, Richard Damon wrote:
>> On 5/20/21 3:24 AM, Peter Otten wrote:
>>> On 20/05/2021 06:00, Richard Damon wrote:
>>>
>>>> class GedcomHead(Gedcom0Tag):
>>>>      """GEDCOM 0 HEAD tag"""
>>>>      def ___init___(self, *, parent):
>>>
>>> An __init__ with three underscores; you must me joking ;)
>>>
>> Yes, that is what I was missing, too many underscores there, so
>> GedcomHead didn't have an __init__ so it inherited inherited from it
>> from its base with the wrong signature.
>
> many fonts squish together repeated underscores in the display so it's
> hard to see this visually,

Is it just me, or does it seem foolish to use such fonts for
editing/browsing source code...

--
Grant


devel / comp.lang.python / Re: Unexpected Inheritance Problem

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor