def safe_getattr(object, name, default):
try:<EOL><INDENT>return getattr(object, name, default)<EOL><DEDENT>except TEST_OUTCOME:<EOL><INDENT>return default<EOL><DEDENT>
Like getattr but return default upon any Exception or any OutcomeException.

    Attribute access can potentially fail for 'evil' Python objects.
    See issue #214.
    It catches OutcomeException because of #2490 (issue #580), new outcomes are derived from BaseException
    instead of Exception (for more details check #2707)