In Part 5 of this series, we’ll explore Python’s concurrency model: threading, asyncio, and multiprocessing — stay tuned.
Let’s combine __slots__ , property , descriptors, and __init_subclass__ into a small data validation framework: python 3 deep dive part 4 oop high quality
class Concrete(LogMixin, ValidateMixin, Base): pass In Part 5 of this series, we’ll explore
@property def width(self): return self._width In Part 5 of this series
:
obj = MyClass() print(type(obj)) # <class '.MyClass'> print(type(MyClass)) # <class 'type'> – yes, classes are objects too!