class documentation
class suppress(contextlib.suppress, contextlib.ContextDecorator): (source)
A version of contextlib.suppress with decorator support. >>> @suppress(KeyError) ... def key_error(): ... {}[''] >>> key_error()
class suppress(contextlib.suppress, contextlib.ContextDecorator): (source)
A version of contextlib.suppress with decorator support. >>> @suppress(KeyError) ... def key_error(): ... {}[''] >>> key_error()