import sys class RegularPoint: pass class SlottedPoint: __slots__ = ('x', 'y')

Object-Oriented Programming (OOP) in Python is not about dogmatic inheritance trees or "Real World Modeling"™. It is about and polymorphic behavior through a message-passing paradigm.

Python 3 Deep Dive Part 4 Oop High Quality Now

import sys class RegularPoint: pass class SlottedPoint: __slots__ = ('x', 'y')

Object-Oriented Programming (OOP) in Python is not about dogmatic inheritance trees or "Real World Modeling"™. It is about and polymorphic behavior through a message-passing paradigm. python 3 deep dive part 4 oop high quality