[docs] [issue36947] [Good first issue] Fix 3.3.3.1 Metaclasses Documentation
Nicholas Matthews
report at bugs.python.org
Fri May 17 11:35:13 EDT 2019
Nicholas Matthews <nmatthews at asapp.com> added the comment:
Thanks for the clarification. For the first point on the correctness of the original text, that makes sense, could you link me to any relevant documentation for further reading?
On the second point "Meta modifies the creation of the classes themselves, not instances of the classes." I think this is not 100% correct. When you create an instance of a class via "instance = MyClass()", the `__call__` method of the metaclass is invoked, so metaclasses can control both class definition and instance creation.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36947>
_______________________________________
More information about the docs
mailing list