class 'C'>, <class 'A'>, <class 'B'>, <class 'object'>]
- C.mro()
[<class MyClass:
+Property
Pythonic way to implement getters and setters.
class MyClass:
@property
def a(self):
return self._a
@@ -981,6 +981,7 @@ Z = dataclasses.make_dataclass('Z', [
+
>>> el = MyClass()
>>> el.a = 123
>>> el.a