getattr_recursive (method)

getattr_recursive(obj, attr_list)[source]

Function to recursively get an attribute.

Parameters
  • obj (object) – An object

  • attr_list (list) – A list of strings that is the attribute ‘tree’

Returns

attr – An attribute

Return type

attribute