What's the most pythonic or elegant way of achieving this?
def __init__(self, connection=None, some=None, thing=None, else=None):
if connection is None:
self.connection = SetConnection()
else:
self.connection = connection
.
.
If I have multiple input args like above for which I would like to call another class to instantiate. Any good way to keep it clean looking without being verbose?
isinstanceto check ifconnectionis indeed the class/type you need and not something else.