Начинаю разбираться с питоном .
class Foo(object):
__x=10
def __setX(self,x):
self.__x=10
def __getX(self):
return self.__x
x=property(__getX,__setX)
def bar(self):
for prop in [self.x]:
prop=123456789
почeму в методе bar не будет присвоено значение property x ?
Оно остается 10
Форум —
Development


