Introducing MetaClasses
AMiT Kumar (~aktech) |
19
Description:
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
Prerequisites:
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: http://slides.com/aktech/introducing-metaclasses-in-python#/
- [2] Wiki: https://en.wikipedia.org/wiki/Metaclass
- [3] Python docs: https://docs.python.org/3/reference/datamodel.html#customizing-class-creation
- [4] https://www.reddit.com/r/Python/comments/4m4elf/introducing_metaclasses_in_python_by_amit_kumar/
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 http://iamit.in
- [5] Blog: http://iamit.in/blog/
- [6] Github: https://github.com/aktech
- [7] Twitter: https://twitter.com/iaktech
- [8] Talks: http://iamit.in/talks