Edit attribute in script string with AST
Edit attribute in script string with AST Question: I’m unfamiliar with the AST module and would appreciate any insight. If, for example, I have a string that contains a valid python script such as import sys #Just any module class SomeClass: def __init__(self): self.x = 10 self.b = 15 def a_func(self): print(self.x) I would like …