Top-rated recipes tagged "getattr"http://code.activestate.com/recipes/tags/getattr/top/2010-08-05T07:02:29-07:00ActiveState Code Recipesgetattr with arbitrary depth. (Python) 2010-08-05T07:02:29-07:00Noufal Ibrahimhttp://code.activestate.com/recipes/users/4173873/http://code.activestate.com/recipes/577346-getattr-with-arbitrary-depth/ <p style="color: grey"> Python recipe 577346 by <a href="/recipes/users/4173873/">Noufal Ibrahim</a> (<a href="/recipes/tags/attributes/">attributes</a>, <a href="/recipes/tags/getattr/">getattr</a>). Revision 2. </p> <p><code>getattr</code> allows one to obtain an attribute from an object given it's name as a string. <code>multi_getattr</code> does the same thing but with dotted strings that can represent nested attributes.</p>