Unexpected Inheritance Problem

Richard Damon Richard at Damon-Family.org
Thu May 20 06:54:35 EDT 2021


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.

Thank you.

-- 
Richard Damon



More information about the Python-list mailing list