Mistři v programování na #hovnokod

Python #466

# bad, bad SQLAlchemy!        
    def assemble(self, message):
        mdict = message.__dict__.copy()
        self.__dict__.update(mdict)
        
    def disassemble(self, message):
        mdict = message.__dict__.copy()
        instance_state = self.__dict__.get('_sa_instance_state')
        self.__dict__.update(mdict)
        self.__dict__['_sa_instance_state'] = instance_state
    # /bad, bad SQLAlchemy!

HovnoKod,