class definition question

Manfred Lotz ml_news at posteo.de
Wed Aug 7 14:11:15 EDT 2019


Hi there,
More often I see something like this:

class Myclass:
...


but sometimes I see

class Myclass(object):
...


Question: which way is preferable?

-- 
Manfred




More information about the Python-list mailing list