Closed gouzil closed 1 year ago
为什么需要支持ObjectVariable的 side effects
ObjectVariable
class CustomObject: def __init__(self, a): self.a = a def object_delattr(cus_obj): del cus_obj.a x = CustomObject(1) symbolic_translate(object_delattr)(x) print(dir(x)) # ['__class__', ... , 'a'] x2 = CustomObject(1) object_delattr(x2) print(dir(x2)) # ['__class__', ... , '__weakref__']
目前还存在的问题:
sot/opcode_translator/executor/side_effects.py
Obj
post_gen
close: #307
为什么需要支持
ObjectVariable
的 side effects目前还存在的问题:
sot/opcode_translator/executor/side_effects.py
中有关Obj
的post_gen
方法close: #307