class f1: def __init__(self, v): self.__v = v def upate(self): return self.__vt = f1(3)t.__v = 5print(t._f1__v)dir(f1)
Standard input is empty
3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!