Unexpected Inheritance Problem

Grant Edwards grant.b.edwards at gmail.com
Thu May 20 14:53:19 EDT 2021


On 2021-05-20, Mats Wichmann <mats at 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






More information about the Python-list mailing list