{ } Raw JSON

bundles / IPython 9.13.0 / IPython / core / formatters / BaseFormatter / pop

function

IPython.core.formatters:BaseFormatter.pop

source: /IPython/core/formatters.py :573

Signature

def   pop ( self typ default = IPython.core.formatters._raise_key_error )

Summary

Pop a formatter for the given type.

Parameters

typ : type or '__module__.__name__' string for a type
default : object

value to be returned if no formatter is registered for typ.

Returns

obj : object

The last registered object for the type.

Raises

: KeyError if the type is not registered and default is not specified.

Aliases

  • IPython.core.formatters.BaseFormatter.pop