

def __new__(cls, *args, **kwargs):
    obj = super(InMemoryBase, cls).__new__(cls, *args, **kwargs)
    if (not ('__cols__' in obj.__dict__)):
        obj.__dict__['__cols__'] = {
            
        }
    for (k, v) in obj.__class__.__dict__.iteritems():
        if isinstance(v, Column):
            obj.__dict__['__cols__'][k] = v
    return obj

dataset/ETHPy150Open rcbops/opencenter/opencenter/db/inmemory.py InMemoryBase.__new__/original