Created
April 6, 2023 08:05
-
-
Save bbelderbos/0c41a5e7b49199ce5c0371f2c18e4069 to your computer and use it in GitHub Desktop.
This file contains 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
function pys { | |
if [ "$#" -eq 1 ]; then | |
# show source of module | |
search=$1 | |
else | |
# show source of module -> object | |
search=$1:$2 | |
fi | |
(python -m inspect $search|less) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment