bundles / IPython 9.11.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 typedefault: objectvalue to be returned if no formatter is registered for typ.
Returns
obj: objectThe 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