Mind-bending metaclasses - adding function overloads to Python
Metaclasses in Python allow you to customize the class creation process. We go over what metaclasses are and give some notable examples, including: abstract base classes, adding function overloads, and dataclasses or code generation.
― mCoding with James Murphy ()
Source code:
Python metaclass docs: #metaclasses
Previous video on new:
Another great metaprogramming video:
Python descriptor docs:
Python ABC docs:
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
Feeling generous but don’t have a Patreon? Donate via PayPal! (No sign up needed.)
To
3 views
14
3
3 years ago 00:15:45 3
Mind-bending metaclasses - adding function overloads to Python