I thought it was my bad coding in Roommates to cause the problems, but I found even in SOTW or other program I still have this issue with eval. In practice, what before was working fine, in the latest Ren'Py crashes. A line like:
Code: Select all
rv = eval(self.item["Superclass"])(self.item["Name"], self.item["ID"], self.item["Type"],tmp_values,tmp_keys,self.item["D-Type"],eval(self.item["Price"]),eval(self.item["Dropable"]),eval(self.item["Unique"]),self.item["Icon"],self.item["Description"],self.level)
TypeError: eval() arg 1 must be a string or code object
So I'm wondering why? I mean, if worked fine in the past 4 years (or so since I've been using Ren'Py) why suddenly breaks now ? some changes introduced by newer version of Python? How can I fix this (except for not upgrading)? Thanks