· software
When to use getattr in Python
The basic idea Normally, you access attributes like this: python p.name That works only if you know the attribute name at coding time. getattr lets you do the...
The basic idea Normally, you access attributes like this: python p.name That works only if you know the attribute name at coding time. getattr lets you do the...