
Metaprogramming with Python[Book] - O'Reilly Media
With Python, you will have access to advanced metaprogramming features that you can use to build high-performing applications. The book starts by introducing you to the need and applications of metaprogramming, before navigating the fundamentals of …
9. Metaprogramming - Python Cookbook, 3rd Edition [Book]
The main purpose of this chapter is to explore various metaprogramming techniques and to give examples of how they can be used to customize the behavior of Python to your own whims.
Metaprogramming with Python [Book] - O'Reilly Media
Metaprogramming with Python by Sulekha AloorRavi Get full access to Metaprogramming with Python and 60K+ other titles, with a free 10-day trial of O'Reilly. There are also live events, courses curated by job role, and more.
Python Metaprogramming in Practice - O'Reilly Media
Join expert Trey Hunner to dive into the low-level metaprogramming features that Python provides for library and framework authors. You'll explore decorators, descriptors, and metaclasses, and see how each of these Python features works and what power they hold.
Expert Python Programming - Fourth Edition - O'Reilly Media
Effectively package Python code for community and production use; Learn modern syntax elements of Python programming, such as f-strings, enums, and lambda functions; Demystify metaprogramming in Python with metaclasses; Write concurrent code in Python; Extend and integrate Python with code written in C and C++; Who this book is for
Metaprogramming with Python [Book] - O'Reilly Media
In this chapter, we will learn how to use ASTs in Python to generate code for various applications. We will apply these abstract syntax trees to metaprogramming to implement automatic code generated in this chapter.
Expert Python Programming - Third Edition - O'Reilly Media
Complete with best practices, useful tools, and standards implemented by professional Python developers, the third edition of Expert Python Programming will help you overcome this challenge. The book will start by taking you through the new features in Python 3.7.
Chapter 6 : Implementing Reflection on Python Objects - O'Reilly …
Reflection is a continuation of introspection, or it can be looked upon as a concept where we can make use of the information we learn from the introspection of properties or attributes of objects in Python and apply them to manipulate the objects, and so perform metaprogramming.
Chapter 3 : Understanding Decorators and their Applications
We will first take a look at decorators and how decorators can be implemented in Python 3. Decorators are one of the metaprogramming concepts that deal with decorating a function without modifying the actual function body.
Chapter 7 : Understanding Generics and Typing - O'Reilly Media
In this chapter, we will look at what generics are and how to perform type checking in Python 3 and understand how it is useful in metaprogramming. Python is a programming language where variables are declared as generics and they don’t get a …