You are viewing an older version (9.2.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.2.0 / IPython / core / oinspect / Inspector / _source_contains_docstring

staticmethod

IPython.core.oinspect:Inspector._source_contains_docstring

source: /dev/ipython/IPython/core/oinspect.py:1092

Signature

staticmethoddef _source_contains_docstring(src, doc)

Summary

Check whether the source src contains the docstring doc.

Extended Summary

This is is helper function to skip displaying the docstring if the source already contains it, avoiding repetition of information.

Aliases

  • IPython.core.oinspect.Inspector._source_contains_docstring