Somewhat equivalent to x.<delegate_to>.<attr>
.
This is used to implement __getattr__ without leading to infinite
recursion when hasattr()
is used.
- Parameters:
x (object) – Base object containing the attribute to delegate to.
delegate_to (str) – Name of the x
attribute to delegate to
attr (str) – Name of the attribute to lookup.