The API that allows "get" works on the state variable that is a dictionary that stores all the attributes of an object. To provide the same API to a persistent object retrieved by sqlalchemy, currently the attributes are copied to the state variable. This is a deep copy. Instead a delegate should be provided for a persistence object that does not do a deep copy but still retrieves the attribute.
The API that allows "get" works on the state variable that is a dictionary that stores all the attributes of an object. To provide the same API to a persistent object retrieved by sqlalchemy, currently the attributes are copied to the state variable. This is a deep copy. Instead a delegate should be provided for a persistence object that does not do a deep copy but still retrieves the attribute.