6

Instances are objects created from classes. Classes are objects too, but created from metaclasses. Functions are objects, methods are objects, files are objects, everything in Python is an object.

So metaclasses are also objects?If so, what class do metaclasses belong to?

Alex
  • 67
  • 2
  • Metaclasses are also just classes, which are just objects. It's the relationship of a class to its metaclass that makes the metaclass meta. The metaclass itself isn't anything special. – deceze Mar 15 '17 at 10:43
  • in python everything is object :) – PyNico Mar 15 '17 at 11:06
  • @deceze if I could say in Python,everything is object,except type? – Alex Mar 17 '17 at 04:30

0 Answers0