Table of Contents
Preface
Part 1: Fundamentals – Introduction to Object-Oriented Python and Metaprogramming
Chapter 1: The Need for and Applications of Metaprogramming
Technical requirements
An overview of metaprogramming
Metaprogramming – a practical introduction
Metadata of the add function
Resolving type errors using metaprogramming
Understanding why we need metaprogramming
Don’t Repeat Yourself
Exploring the applications of metaprogramming
Summary
Chapter 2: Refresher of OOP Concepts in Python
Technical requirements
Introducing our core example
Creating classes
Understanding objects
Applying methods
Implementing inheritance
Extending to multiple inheritance
Understanding polymorphism
Polymorphism within inheritance
Polymorphism in independent ...
Get Metaprogramming with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.