Created
October 30, 2018 14:59
-
-
Save blue-bird1/0e156331e77cdfa62cbcca90408884fd to your computer and use it in GitHub Desktop.
func print self __doc__
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from inspect import * | |
| def my_selfexplaining_function(): | |
| """This is my function document string""" | |
| print getdoc(globals()[getframeinfo(currentframe()).function]) | |
| my_selfexplaining_function() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment