My question is are the following two pieces of code run the same by the interpreter:
class A(object): def __init__(self): self.__x = None @property
No, the getter will be called every time you access the property.