Re: class definition question

2019-08-10 Thread Cameron Simpson
On 07Aug2019 16:36, Terry Reedy wrote: On 8/7/2019 3:26 PM, Manfred Lotz wrote: On Wed, 07 Aug 2019 14:39:00 -0400 Dennis Lee Bieber wrote: On Wed, 7 Aug 2019 20:11:15 +0200, Manfred Lotz declaimed the following: More often I see something like this: class Myclass: ... but sometimes I see

Re: class definition question

2019-08-07 Thread Terry Reedy
On 8/7/2019 3:26 PM, Manfred Lotz wrote: On Wed, 07 Aug 2019 14:39:00 -0400 Dennis Lee Bieber wrote: On Wed, 7 Aug 2019 20:11:15 +0200, Manfred Lotz declaimed the following: Hi there, More often I see something like this: class Myclass: ... but sometimes I see class Myclass(object): ...

Re: class definition question

2019-08-07 Thread Manfred Lotz
On Wed, 07 Aug 2019 14:39:00 -0400 Dennis Lee Bieber wrote: > On Wed, 7 Aug 2019 20:11:15 +0200, Manfred Lotz > declaimed the following: > > >Hi there, > >More often I see something like this: > > > >class Myclass: > >... > > > > > >but sometimes I see > > > >class Myclass(object): > >... > > >

class definition question

2019-08-07 Thread Manfred Lotz
Hi there, More often I see something like this: class Myclass: ... but sometimes I see class Myclass(object): ... Question: which way is preferable? -- Manfred -- https://mail.python.org/mailman/listinfo/python-list