<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_res(self,res):
 """ reset the private Pst.res attribute Parameters res : (varies) something to use as Pst.res attribute """

        if isinstance(res,str):
            res = pst_utils.read_resfile(res)
        self.__res = res