Popular recipes tagged "meta:requires=recipe" but not "carlo"http://code.activestate.com/recipes/tags/meta:requires=recipe-carlo/popular/2005-10-24T09:43:15-07:00ActiveState Code RecipesAvoiding having to type long attribute names in interactive use (Python)
2005-10-24T09:43:15-07:00Noel O'Boylehttp://code.activestate.com/recipes/users/2597815/http://code.activestate.com/recipes/440582-avoiding-having-to-type-long-attribute-names-in-in/
<p style="color: grey">
Python
recipe 440582
by <a href="/recipes/users/2597815/">Noel O'Boyle</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
Revision 3.
</p>
<p>This recipe shows how to add a __getattr__ method to your class that allows you to use shortened forms for attribute names in interactive use.</p>