In [12]:
grumpy.factory() # this does not work, yay!
Why metaclass?
It's fun. What else are you gonna do?
It unifies classes and objects.
(Actually useful stuff.)
tl;dr
Classes are dynamic structures.
Classes are instances.
Be stupid! Silly, useless code is the best way to learn!
[email protected]
@SoylentBleen
--------------------------------------------------------------------
-------
AttributeError Traceback (most recent cal
l last)
in ()
----> 1 grumpy.factory() # this does not work, yay!
AttributeError: 'FancyCat' object has no attribute 'factory'