##// END OF EJS Templates
In obj??, display the docstring if it is not in the source....
In obj??, display the docstring if it is not in the source. Currently, `obj??` does not display obj's docstring because it is likely redundant with the source (which usually also includes the docstring). However, when the docstring had been dynamically added, then it should also be displayed by `obj??` (because it is not redundant in this case). A reasonable way to check for this condition is to parse the source and compare the result of `ast.get_docstring()` to the result of `inspect.getdoc()`, as done by this PR.

File last commit:

r24010:77b36a9f
r24118:db899f48
Show More
.gitignore
26 lines | 407 B | text/plain | TextLexer
MANIFEST
build
dist
_build
docs/man/*.gz
docs/source/api/generated
docs/source/config/options
docs/source/config/shortcuts/*.csv
docs/source/interactive/magics-generated.txt
docs/source/config/shortcuts/*.csv
docs/gh-pages
jupyter_notebook/notebook/static/mathjax
jupyter_notebook/static/style/*.map
*.py[co]
__pycache__
*.egg-info
*~
*.bak
.ipynb_checkpoints
.tox
.DS_Store
\#*#
.#*
.cache
.coverage
*.swp