BadPython.com

Suggestion for "Using custom getters and setters"

use a namedtuple
            
from collections import namedtuple

MyClass = namedtuple('MyClass', ['x'])