I was wondering what was the best practice for initializing object attributes in Python, in the body of the class or inside the __init__
function?
i.e.
class A(object):
foo = None
vs
class A(object):
def __init__(self):
self.foo = None