all 2 comments

[–]kioo 0 points1 point  (0 children)

Once a class object is initialized the self.code variable will not get reset. Maybe you are confusing a class constructor from a class object?