Grokking Advanced Python
Vote

0% completed

​

Python - Reflection

Reflection is a powerful feature in programming that allows a program to manipulate the properties and capabilities of objects at runtime. In Python, reflection enables the inspection of classes, modules, and functions while the program is running, allowing you to examine and modify their behavior dynamically.

Python provides several built-in functions that support reflective capabilities, such as getattr(), setattr(), hasattr(), and delattr(). These functions allow for dynamic manipulation of attributes, and the type() and isinstance() functions help in introspecting types.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content