Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 answers
573 users
class Test: def __init__(self, value): self.__privatevalue = value __privatevalue = 0 o = Test(98) # print(o.__privatevalue) # 'A' object has no attribute '__privatevalue' print(o._Test__privatevalue) ''' run: 98 '''