human
Python: How to get attribute of attribute of an object with getattr?
assistant
Here is some code to evaluate a nested dictionary `myobject.id.number` to get `number` if `myobject` is present with getattr

getattr(getattr(myobject, 'id', None), 'number', None)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.