Added chapters and list of exercises

This commit is contained in:
Rick van Hattem
2022-04-30 00:45:54 +02:00
commit 1c106d776c
37 changed files with 124 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
Chapter 8 - metaclasses
=======================================================================================================================
1. Create a metaclass to test if attributes/methods are available.
2. Create a metaclass to test if specific classes are inherited.
3. Build a metaclass that wraps every method with a decorator (could be useful for logging/de- bugging purposes), something with a signature like this:
class SomeClass(metaclass=WrappingMeta, wrapper=some_wrapper):