1. New vs old classes
In Python 3, every class is already a “new-style” class. You do not need to inherit from object explicitly.
Leaving out object removes a historical compatibility artifact that no longer carries meaning in modern Python. Trimming those leftovers makes examples shorter and signals that the code is written for current Python, not for Python 2.
1.1. Don’t do this
1class Car(object):
2 def __init__(self, make, model):
3 self.make = make
4 self.model = model
1.2. Do this
1class Car:
2 def __init__(self, make, model):
3 self.make = make
4 self.model = model