Metaprogramming with Python
This book covers the concepts of metaprogramming and its applications. Each chapter brings you explanations along with workable examples on the subjects of decorators, metaclasses, introspection, reflection, generics, templates, and more. You’ll learn how to write code for metaprogramming using Python 3.0 and higher.
Offered by
Difficulty Level
Intermediate
Completion Time
13h24m
Language
English
About Book
Who Is This Book For?
If you are an intermediate-level Python programmer looking to enhance your coding skills by developing reusable and advanced frameworks, then this book is for you. Basic knowledge of Python programming will help you get the most out of this learning journey.
Metaprogramming with Python
- About Book
- Who Is This Book For?
- Book Content
Book content
chapters • 13h24m total length
The Need For and Applications of Meta programming
Refresher of OOP Concepts in Python
Understanding Decorators and Their Applications
Working with Metaclasses
Understanding Introspection
Implementing Reflection on Python Objects
Understanding Generics and Typing
Defining Templates for Algorithms
Understanding Code through Abstract Syntax Tree
Understanding Method Resolution Order of Inheritance
Creating Dynamic Objects
Applying GOF Design Patterns – Part 1
Applying GOF Design Patterns – Part 2
Generating Code from AST
Implementing a Case Study
Following Best Practices
Related Resources
Access Ready-to-Use Books for Free!
Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!