

def _new_state_if_none(self, instance):
    'Install a default InstanceState if none is present.\n\n        A private convenience method used by the __init__ decorator.\n\n        '
    if hasattr(instance, self.STATE_ATTR):
        return False
    elif ((self.class_ is not instance.__class__) and self.is_mapped):
        return self._subclass_manager(instance.__class__)._new_state_if_none(instance)
    else:
        state = self._state_constructor(instance, self)
        setattr(instance, instance.STATE_ATTR, state)
        return state

dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/orm/instrumentation.py ClassManager._new_state_if_none/VarMisuse@85/153 `self`->`instance`