Skip to content

Instantly share code, notes, and snippets.

@bbelderbos
Created April 6, 2023 08:05
Show Gist options
  • Save bbelderbos/0c41a5e7b49199ce5c0371f2c18e4069 to your computer and use it in GitHub Desktop.
Save bbelderbos/0c41a5e7b49199ce5c0371f2c18e4069 to your computer and use it in GitHub Desktop.
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