Introducing MetaClasses

AMiT Kumar (~aktech)




This talk is based on the metaclasses in Python. The secret sauce which create classes.

Content Outline

  • Classes as object
  • The other side of type
  • The type metaclass
  • So What is a Meta Class?
  • Creating a metaclass and using it in our class
  • __metaclass__ attribute
  • Override __new__ or __init__ ?
  • Metaclasses in Action
  • More Examples


There are no prerequisites for this talk, anyone who can write a class in python and have a basic idea of inheritance can easily follow this talk.

Content URLs:

  • [1] Slides:
  • [2] Wiki:
  • [3] Python docs:
  • [4]

Slides were already trending on reddit [4].

Speaker Info:

Amit Kumar is a Core Developer at SymPy. He also participated in Google Summer of Code 2015 under Python Software Foundation to work on the Solvers module of SymPy. Currently he is mentoring SymPy GSoC Students and helping new developers to contribute to SymPy & Open Source and also conducts workshops for Scientific Computing with Python using SymPy. He has assisted a workshop at PyCon India 2015 & spoken at FOSSASIA Singapore and PyDelhi Meetups. He is also co-speaker for SymPy Tutorial at SciPy 2016, US. He is a member of Python Delhi User group.

Speaker Links:

Amit Kumar | Links

  • [4] Website
  • [5] Blog:
  • [6] Github:
  • [7] Twitter:
  • [8] Talks:

Section: Core Python
Type: Talks
Target Audience: Intermediate
Last Updated: