This is a development version (latest) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython latest / 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