Python Metaclasses

Python Metaclasses

Deep Dive into Python MetaClasses

Highlights from a great talk by James Powell found here.

In this repo you will find notebooks highlighting when and why to use various metaclasses.

  1. Data Model Methods
    • Intro to data models
  2. Generators
    • What are generators and when to use them.
    • Eager vs Lazy Loading
  3. Decorators
    • Investigate runtime objects
  4. Context Managers
    • Putting it all together: combining generators, decorators and context managers

NOTE: In python you will always find this pattern:

top-level function or syntax and a corresponding __method__ function

Daniel Diamond

Daniel Diamond

data watches music travel

rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora