When to use getattr in Python

At some point in Python, you realize that writing object.attribute isn’t always enough. Sometimes: The attribute name comes from user […]