According to docs and testing (in the interpreter) I can make a
read-only calculated attribute using property() (I know that setters do
not work w/ non-new-style classes). So I tried the following:
class CMixin:
def getter(self):
return 'test'
prop = property(getter)
and when I try to
Tim McLaughlin wrote:
According to docs and testing (in the interpreter) I can make a
read-only calculated attribute using property() (I know that setters do
not work w/ non-new-style classes). So I tried the following:
class CMixin:
def getter(self):
return 'test'
prop =
Steve Alexander wrote:
Tim McLaughlin wrote:
According to docs and testing (in the interpreter) I can make a
read-only calculated attribute using property() (I know that setters
do not work w/ non-new-style classes). So I tried the following:
class CMixin:
def getter(self):
return