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

bundles / IPython latest / IPython / core / _dunder_ops

module

IPython.core._dunder_ops

source: /IPython/core/_dunder_ops.py:0

Members

Summary

Mapping from AST operator nodes to the dunder methods that implement them.

Extended Summary

This lives in its own module, rather than in IPython.core.guarded_eval where it is mostly used, so that the terminal shortcut filters can resolve operators in a filter expression without importing the whole of guarded_eval -- and with it typing_extensions, dataclasses and inspect -- on every startup.

The names are re-exported from IPython.core.guarded_eval, which remains their documented home.

Additional content

Mapping from AST operator nodes to the dunder methods that implement them.

This lives in its own module, rather than in IPython.core.guarded_eval where it is mostly used, so that the terminal shortcut filters can resolve operators in a filter expression without importing the whole of guarded_eval -- and with it typing_extensions, dataclasses and inspect -- on every startup.

The names are re-exported from IPython.core.guarded_eval, which remains their documented home.

Aliases

  • IPython.core._dunder_ops