Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


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

SubjectAuthor
o Re: Unexpected Inheritance ProblemTerry Reedy

1
Re: Unexpected Inheritance Problem

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: tjre...@udel.edu (Terry Reedy)
Newsgroups: comp.lang.python
Subject: Re: Unexpected Inheritance Problem
Date: Thu, 20 May 2021 17:02:10 -0400
Lines: 34
Message-ID: <mailman.264.1621547403.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> <s86iok$ki9$1@ciao.gmane.io>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de Bl97CxKD6YnhDyXd1iAWWwfbKiFDtog7V3o9F/2dJxtw==
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.002
X-Spam-Evidence: '*H*': 1.00; '*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; 'terry': 0.09; '>>>>': 0.16; '>>>>>': 0.16;
'from:addr:udel.edu': 0.16; 'mats': 0.16; 'pro,': 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; 'pm,': 0.20; 'skip:_ 10':
0.23; 'to:addr:python-list': 0.23; 'code': 0.24; '>>>': 0.26;
'space': 0.26; 'wrong': 0.27; 'default': 0.28; "didn't": 0.29;
'header:User-Agent:1': 0.31; 'seem': 0.31; 'am,': 0.31; 'class':
0.33; 'header:In-Reply-To:1': 0.33; 'yes,': 0.35; 'windows': 0.36;
'display': 0.37; 'hard': 0.38; "it's": 0.38; 'use': 0.38;
'source': 0.38; 'does': 0.38; 'skip:e 10': 0.60; '10,': 0.61;
'here': 0.62; '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: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.1
In-Reply-To: <s86b6u$7cr$1@ciao.gmane.io>
Content-Language: en-US
X-Mailman-Approved-At: Thu, 20 May 2021 17:50:02 -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: <s86iok$ki9$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>
<s86b6u$7cr$1@ciao.gmane.io>
 by: Terry Reedy - Thu, 20 May 2021 21:02 UTC

On 5/20/2021 2:53 PM, Grant Edwards wrote:
> 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...

Windows 10, at least, has Source Code Pro, and variations, in which
__init__ has distinct _s with a small space in between (unlike the
default font here in Thunderbird, or in Firefox). This is the only
monospaced TrueType font available in the Windows console with this
property.

--
Terry Jan Reedy

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor