

def initialize_collection(self, key, state, factory):
    user_data = factory()
    adapter = collections.CollectionAdapter(self.get_impl(key), state, state)
    return (adapter, user_data)

dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/orm/instrumentation.py ClassManager.initialize_collection/VarMisuse@37/43 `user_data`->`state`