You are viewing an older version (9.12.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.12.0 / IPython / lib / pretty / _safe_getattr

function

IPython.lib.pretty:_safe_getattr

source: /IPython/lib/pretty.py :127

Signature

def   _safe_getattr ( obj attr default = None )

Summary

Safe version of getattr.

Extended Summary

Same as getattr, but will return default on any Exception, rather than raising.

Aliases

  • IPython.lib.pretty._safe_getattr