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

bundles / IPython 9.14.0.dev / IPython / core / oinspect / Inspector / _source_contains_docstring

staticmethod

IPython.core.oinspect:Inspector._source_contains_docstring

source: /IPython/core/oinspect.py :1091

Signature

staticmethod def   _source_contains_docstring ( src doc )

Summary

Check whether the source src contains the docstring doc.

Extended Summary

This is a 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