Dynamic methods and properties in Python

A simple introduction to using Python’s data model, *args, **kwargs, __getattr__, and __getattribute__ methods to implement dynamic methods and properties for classes and objects. Techniques are introduced for refactoring while maintaining backwards compatibility e.g. for an API or library. Prerequisite:Python Installation What is a dynamic method or property? Simply, a Read more…