Re: Unexpected Inheritance Problem

2021-05-21 Thread Grant Edwards
On 2021-05-20, Terry Reedy wrote: > On 5/20/2021 2:53 PM, Grant Edwards wrote: >> On 2021-05-20, Mats Wichmann wrote: >> >>> 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 >>

Re: Unexpected Inheritance Problem

2021-05-20 Thread Terry Reedy
On 5/20/2021 2:53 PM, Grant Edwards wrote: On 2021-05-20, Mats Wichmann 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, *

Re: Unexpected Inheritance Problem

2021-05-20 Thread Grant Edwards
On 2021-05-20, Mats Wichmann 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 __

Re: Unexpected Inheritance Problem

2021-05-20 Thread Mats Wichmann
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 i

Re: Unexpected Inheritance Problem

2021-05-20 Thread Richard Damon
On 5/20/21 1:58 AM, Chris Angelico wrote: > On Thu, May 20, 2021 at 2:02 PM Richard Damon > wrote: >> Given the following definition of classes, I am getting an unexpected >> error of : >> >> TypeError: __init__() missing 2 required keyword-only arguments: >> 'idcode' and 'tag' >> >> On the call

Re: Unexpected Inheritance Problem

2021-05-20 Thread Richard Damon
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 un

Re: Unexpected Inheritance Problem

2021-05-20 Thread Peter Otten
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 ;) -- https://mail.python.org/mailman/listinfo/python-list

Re: Unexpected Inheritance Problem

2021-05-19 Thread Chris Angelico
On Thu, May 20, 2021 at 2:02 PM Richard Damon wrote: > > Given the following definition of classes, I am getting an unexpected > error of : > > TypeError: __init__() missing 2 required keyword-only arguments: > 'idcode' and 'tag' > > On the call to create a GedcomHead in the call to GedcomHead()

Unexpected Inheritance Problem

2021-05-19 Thread Richard Damon
Given the following definition of classes, I am getting an unexpected error of : TypeError:  __init__() missing 2 required keyword-only arguments: 'idcode' and 'tag' On the call to create a GedcomHead in the call to GedcomHead() in Gedcom0Tag.add() Code: class GedcomTag:     """Represents a Le