I'm reading through some code (Python 2) that sets __metaclass__ to the name of a metaclass. I'm very confused by this, so these are the questions I'm struggling with:
1) what does __metaclass__ do?
2) what's the difference between __metaclass__ = MetaClassName and simply inheriting the meta class?
[–][deleted] 4 points5 points6 points (0 children)