File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ def func(self):
81
81
# metaclass is nice when we are writting library code and we want user code to be very specific.
82
82
# when user codes classes are inheritting form a specific class situated in the library code,
83
83
# we can force them or tell them to initialize certain methods in that class so that our code doesn't crash.
84
+ # actually, in every example of metaclass we will see that,
85
+ # there is a parent class and some subclasses
86
+ # and we want to control the behaviours of subclasses without explicitely writing code in them.
84
87
85
88
# again there are more complex topics in metaclass. we can see them in the python documentaion.
86
89
# we dont need to use them much. we should use them when we are 101% sure about what we are doing.
You can’t perform that action at this time.
0 commit comments